diff --git a/newtests/lsp/code-action/test.js b/newtests/lsp/code-action/test.js index 3b70e6c5892..0ea38f83e9a 100644 --- a/newtests/lsp/code-action/test.js +++ b/newtests/lsp/code-action/test.js @@ -26,7 +26,7 @@ module.exports = (suite( [ [ 'initialize', - '{"codeActionProvider":{"codeActionKinds":["source","source.addMissingImports.flow","source.organizeImports.flow","refactor.extract","quickfix"]}}', + '{"codeActionProvider":{"codeActionKinds":["source.addMissingImports.flow","source.organizeImports.flow","refactor.extract","quickfix"]}}', ], ], [...lspIgnoreStatusAndCancellation], diff --git a/src/lsp/flowLsp.ml b/src/lsp/flowLsp.ml index 6e47507a680..653d8f08004 100644 --- a/src/lsp/flowLsp.ml +++ b/src/lsp/flowLsp.ml @@ -757,8 +757,7 @@ let do_initialize params : Initialize.result = in let supported_code_action_kinds = if supports_source_actions then - CodeActionKind.source - :: CodeActionKind.kind_of_string "source.addMissingImports.flow" + CodeActionKind.kind_of_string "source.addMissingImports.flow" :: CodeActionKind.kind_of_string "source.organizeImports.flow" :: supported_code_action_kinds else