LSP server advertises support for the following code action kinds:
codeActionKinds: [
"quickfix",
"source.organizeImports",
"source.removeUnusedImports",
"source.sortImports",
"source.fixAll"
]
For example: https://github.com/microsoft/typescript-go/blob/092b34f534182baf2875887c20ffed2177f14d92/internal/lsp/lsproto/lsp.go#L313-L314
It should ideally advertise more specific kinds with a .ts suffix (for example). So for example source.removeUnusedImports.ts. That would allow the LSP client to target ts-server-specific code action from "code actions on save" functionality without triggering actions of other servers.
So for example:
It will still be possible for the user to specify just source.removeUnusedImports so it should be a backward-compatible change.
LSP server advertises support for the following code action kinds:
For example: https://github.com/microsoft/typescript-go/blob/092b34f534182baf2875887c20ffed2177f14d92/internal/lsp/lsproto/lsp.go#L313-L314
It should ideally advertise more specific kinds with a
.tssuffix (for example). So for examplesource.removeUnusedImports.ts. That would allow the LSP client to target ts-server-specific code action from "code actions on save" functionality without triggering actions of other servers.So for example:
It will still be possible for the user to specify just
source.removeUnusedImportsso it should be a backward-compatible change.