Closed mikebcbc closed 2 months ago
The server triggers additionalTextEdits
on server side by requiring client to execute the command _vtsls.completionCacheCommand
after applying completion item and sending workspace/applyEdit
request back to the client, so there is no content of additionalTextEdits
in the completion response. https://github.com/microsoft/vscode/blob/73a2c100f6229b231d6b255e36d1789c25d92285/extensions/typescript-language-features/src/languageFeatures/completions.ts#L582-L595
Unfortunately, some clients like mini.completion
and nvim builtin completion currently ignores the command
field of completion item, making related features like auto-import not working on them.
A feasible approach here is to expose additionalTextEdits
on server side by patching the vscode extension, also clients could fix this by corretly handle the command
field in completion item.
Hi there! Ive been using vtsls and find it a fantastic alternative to tsserver. However, with completion plugins, vtsls does not return additionalTextEdits and therefore cannot auto import on completion. tsserver does.
I am using mini.completion and this is the following LSP response i am getting for both.
vtsls
tsserver
Any help would be appreciated! Thanks so much!