Comments (9)
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.
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.
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.
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:
- https://github.com/johnsoncodehk/volar/blob/master/packages/vscode-client/src/features/tagClosing.ts#L7-L15
- https://github.com/microsoft/vscode/blob/main/extensions/html-language-features/client/src/tagClosing.ts
from coc-volar.
Thanks for the explanation. I'll be referring to them!
from coc-volar.
I minimum ported tagNameCase.ts
and attrNameCase.ts
, and now I can auto complete "HTML tags", "component names", and "directives" in <template>
.
(I may have been mistaken about something)
Anyway, thanks for the advice! 🙇
from coc-volar.
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.
@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.
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)
- does coc-volar do any intellisense inside template and css block HOT 5
- deprecated dependency HOT 1
- Some CodeActions cannot be executed due to errors HOT 6
- the diagnostic can't be used HOT 7
- file path completion when resolve alias with '@' HOT 2
- Cannot jump to component without `.vue` file extension HOT 1
- Language server does not recognize files that have been added or changed HOT 20
- syntax highlight randomly crashed when editing/scrolling through vue SFC HOT 2
- Diagnostic issue (not showing) HOT 4
- Disable autocompletion source HOT 2
- How to install using self managed registry. HOT 1
- Property 'loading' does not exist on type '{}'. HOT 1
- `vue.autoInsert.bracketSpacing` doesn't seem to work. And syntax highlighting is abnormal. HOT 4
- For me don't work? HOT 4
- works with watchman, renameFile not works. HOT 1
- work with local installed vue code HOT 1
- volar.initializeTakeOverMode in readme is outdated HOT 1
- Doesn't work properly when updating to the latest version (0.35.5) HOT 3
- Hover provider no longer works with 0.35.0 or newer HOT 1
- The "auto" options no longer work with version 0.35.0 (or newer) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-volar.