Skip to content

Commit

Permalink
[flow][test] Use a more realistic default codeActionLiteralSupport kinds
Browse files Browse the repository at this point in the history
Summary:
This is the list sent by modern versions of vscode. It will test the change in the next diff

Changelog: [internal]

Reviewed By: panagosg7

Differential Revision:
D67536770

------------------------------------------------------------------------
(from 3a93f1ea3d6ca41e328fc160574d51ef7e5034df)

fbshipit-source-id: 20bec4cf01bc11c0abb3bd00389a8908e1704790
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Dec 20, 2024
1 parent 186aa6d commit 9773592
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion newtests/lsp/code-action/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = (suite(
[
[
'initialize',
'{"codeActionProvider":{"codeActionKinds":["refactor.extract","quickfix"]}}',
'{"codeActionProvider":{"codeActionKinds":["source","source.addMissingImports.flow","source.organizeImports.flow","refactor.extract","quickfix"]}}',
],
],
[...lspIgnoreStatusAndCancellation],
Expand Down
11 changes: 10 additions & 1 deletion packages/flow-dev-tools/src/test/TestStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,16 @@ class TestStepFirstStage extends TestStepFirstOrSecondStage {
codeAction: {
codeActionLiteralSupport: {
codeActionKind: {
valueSet: ['quickfix', 'refactor.extract'],
valueSet: [
'',
'quickfix',
'refactor',
'refactor.extract',
'refactor.inline',
'refactor.rewrite',
'source',
'source.organizeImports',
],
},
},
},
Expand Down

0 comments on commit 9773592

Please sign in to comment.