Multiple server completion support#480
Multiple server completion support#480DanielViberg wants to merge 7 commits intoyegappan:mainfrom DanielViberg:main
Conversation
|
I noticed need for cleanup, will update soon. |
|
vuejs/language-tools#3925 (comment) Volar now does not need tsserver running in parallel. Parking this pr until future need. |
|
The above configuraion now works using https://github.com/DanielViberg/lsp/tree/dev-refactor. Only for completions, diag and rename so far. I have not validated all logic yet. |
|
I'm surprised rename can done with multiple language servers. I quite liked the solution here which explicitly resolves which completion source should be used given the syntactical context: #496. Ultimately, I think only diagnostics and completions need "layering"; the obvious cases are |
Purpose: Volar 2 support
Note, should propbably be tested by more people before being merged to main!
Config
{ "name": "vue-ls", "filetype": ["vue"], "path": "vue-language-server", "args": ["--stdio"], "features": { "definition": true, "rename": true }, "initializationOptions": { "typescript": { "tsdk": "../node/v20.11.0/lib/node_modules/typescript/lib" } }, }, { "name": "ts-ls", "filetype": ["typescript", "javascript", "vue"], "path": "typescript-language-server", "args": ["--stdio"], "features": { "documentFormatting": false, "definition": true, "rename": true }, "initializationOptions": { "plugins":[ { "name": "@vue/typescript-plugin", "location":".../node/v20.11.0/lib/node_modules/@vue/typescript-plugin", "languages": ["vue"] } ] } }Status: