Skip to content

Commit

Permalink
fix: declare quickfix/refactor CodeAction capabilities (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr authored and rchl committed Aug 6, 2022
1 parent 6573f68 commit e76fc64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lsp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ export class LspServer {
resolveProvider: true
},
codeActionProvider: clientCapabilities.textDocument?.codeAction?.codeActionLiteralSupport
? { codeActionKinds: [...TypeScriptAutoFixProvider.kinds.map(kind => kind.value), CodeActionKind.SourceOrganizeImportsTs.value] } : true,
? { codeActionKinds: [
...TypeScriptAutoFixProvider.kinds.map(kind => kind.value),
CodeActionKind.SourceOrganizeImportsTs.value,
CodeActionKind.QuickFix.value,
CodeActionKind.Refactor.value
] } : true,
definitionProvider: true,
documentFormattingProvider: true,
documentRangeFormattingProvider: true,
Expand Down

0 comments on commit e76fc64

Please sign in to comment.