diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-06-15 17:26:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-15 12:26:43 -0400 |
| commit | 845d4754c6fb959d1404f5de4bba9e71667b8c89 (patch) | |
| tree | 88e0ca591f1d055d274731d84e2dfe5bdf69b7d5 /cli/tests/testdata/lsp | |
| parent | 0b90e966c5e22b95c283a10407234cad37b8f19b (diff) | |
fix(check): use "moduleDetection": "force" (#14875)
Diffstat (limited to 'cli/tests/testdata/lsp')
| -rw-r--r-- | cli/tests/testdata/lsp/code_action_response_no_disabled.json | 20 | ||||
| -rw-r--r-- | cli/tests/testdata/lsp/code_action_response_refactor.json | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/cli/tests/testdata/lsp/code_action_response_no_disabled.json b/cli/tests/testdata/lsp/code_action_response_no_disabled.json index c69bd1120..11d2136b5 100644 --- a/cli/tests/testdata/lsp/code_action_response_no_disabled.json +++ b/cli/tests/testdata/lsp/code_action_response_no_disabled.json @@ -1,5 +1,25 @@ [ { + "title": "Extract to function in module scope", + "kind": "refactor.extract.function", + "isPreferred": false, + "data": { + "specifier": "file:///a/file.ts", + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 14, + "character": 0 + } + }, + "refactorName": "Extract Symbol", + "actionName": "function_scope_0" + } + }, + { "title": "Move to a new file", "kind": "refactor.move.newFile", "isPreferred": false, diff --git a/cli/tests/testdata/lsp/code_action_response_refactor.json b/cli/tests/testdata/lsp/code_action_response_refactor.json index c2797812e..d0d9fb0ee 100644 --- a/cli/tests/testdata/lsp/code_action_response_refactor.json +++ b/cli/tests/testdata/lsp/code_action_response_refactor.json @@ -1,6 +1,6 @@ [ { - "title": "Extract to function in global scope", + "title": "Extract to function in module scope", "kind": "refactor.extract.function", "isPreferred": false, "data": { |
