[LS] Code actions don't return version with textDocument
See original GitHub issueThis prevents code-actions from working on editors which expect returned version number to be >= of what was sent to the LS.
tsserver
sends same version back and code-actions work just fine.
https://github.com/neovim/neovim/blob/c1fbc2ddf15b2f44b615f90b2511349ab974cb83/runtime/lua/vim/lsp/util.lua#L265-L272
Here’s code from neovim-lsp
that checks version number.
Will edit more information when I find the differences between svelteserver
and tsserver
regarding sending version number.
Edit: For now these don’t work:
Code Actions:
1. (svelte) Disable missing-declaration for this line
2. Import 'teenStyle' from module "./helpers"
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Nvim lsp: configure language servers, shortcuts, highlights
In this article, I will explain what is LSP, what are language servers, how to configure them in nvim, highlight symbols under the...
Read more >Searching - Notepad++ User Manual
Find in Files tab: Allows you to search and replace in multiple files with one action. The files used for the operation are...
Read more >Integrated Terminal in Visual Studio Code
Visual Studio Code has an integrated terminal to enable working in your shell of choice without leaving the editor.
Read more >Tutorial — pygls documentation - Read the Docs
You do not need this extension when using pygls with other text editors. ... Code supports Language Server Protocol, which means, that every...
Read more >Lsp - Neovim docs
The language server uses semantic analysis to understand code at a project level. ... local on_references = vim.lsp.handlers["textDocument/references"] ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For Svelte files this should be doable, for TS / JS files however we should leave it as currently because we simply do not know what to set it to since we don’t get the current document versions of those.
Probably this line needs to get the correct version https://github.com/sveltejs/language-tools/blob/eac5c7478aebe949bb4337126f38a45b46be8c10/packages/language-server/src/plugins/typescript/features/CodeActionsProvider.ts#L146