Code Monkey home page Code Monkey logo

Comments (9)

johnsoncodehk avatar johnsoncodehk commented on June 20, 2024 4

Please use https://www.npmjs.com/package/@volar/server. All client requests is optional now, but please keep provide GetDocumentVersionRequest because it has a big impact on performance.

from coc-volar.

johnsoncodehk avatar johnsoncodehk commented on June 20, 2024 2

Sorry I thought you talking about the tag auto-closing feature. 🤣

Currently the language server relies on too many client requests, I will reduce it, and check for share the code of @volar/language-client to a certain extent.

Planned to be updated over the weekend.

from coc-volar.

yaegassy avatar yaegassy commented on June 20, 2024

Oh, I was surprised to receive a message from @johnsoncodehk. Thanks for checking out my experimental repository. 🙇

If it works correctly without the appRoot setting, it would be helpful if the appRoot setting option could be removed.

Also, if you could publish @volar/vscode-server to "npm", it would make it possible for other editors, including Vim, to install the server smoothly.


On a different note, I would like to talk about HTML tag completion in <templates>.

Currently, I think it may not work without the built-in html-language-features in "Visual Studio Code". (I'm sorry if I'm wrong)

Other editors, such as Vim and Emacs, do not have html-language-features. :(

VLS (Vue Language Server) works comfortably with "HTML tag completion" in <template>.

It would be helpful if you could add HTML tag completion to @volar/vscode-server itself. 🙇

from coc-volar.

johnsoncodehk avatar johnsoncodehk commented on June 20, 2024

appRoot config is used to require TS library, I can remove it but we need a new option to pass available TS library path to @volar/vscode-server. In this project you can install typescript and pass extension's node_modules/typescript/lib path to server.

html-language-features is not not necessary, but HTML tag completion is not a part of LSP, so we need to implement it in language client. See:

from coc-volar.

yaegassy avatar yaegassy commented on June 20, 2024

Thanks for the explanation. I'll be referring to them!

from coc-volar.

yaegassy avatar yaegassy commented on June 20, 2024

@johnsoncodehk

I minimum ported tagNameCase.ts and attrNameCase.ts, and now I can auto complete "HTML tags", "component names", and "directives" in <template>.

coc-volar-demo

(I may have been mistaken about something)

Anyway, thanks for the advice! 🙇

from coc-volar.

fannheyward avatar fannheyward commented on June 20, 2024

do not have html-language-features

@yaegassy does coc-html work for this? cic-html is a almost clone of html-language-features.

from coc-volar.

yaegassy avatar yaegassy commented on June 20, 2024

@fannheyward Thank you for the information. 🙇

I confirmed that volar can provide HTML tag completion by itself, but if I run coc-html, the HTML tag completion will be duplicated.

I interpreted html-language-features as being used for the tag-close feature, so I lowered the priority of the tag-close feature and removed the coc-html dependency once and for all.

from coc-volar.

johnsoncodehk avatar johnsoncodehk commented on June 20, 2024

volar enable html-language-features to resolve microsoft/vscode#98621. vscode 1.58 already fix it so volar will remove html-language-features and css-language-features in next version.

But still require typescript-language-features because it still use setLanguageConfiguration api. See https://github.com/microsoft/vscode/blob/main/extensions/typescript-language-features/src/languageFeatures/languageConfiguration.ts#L103.
Track issue: microsoft/vscode#125748.

I think this extension is not require coc-html, coc-css... at all, because it seem a vscode specific problem.

from coc-volar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.