summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lsp/code_action_params_imports.json
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-12-29 21:07:09 +0100
committerGitHub <noreply@github.com>2022-12-29 21:07:09 +0100
commitef5f8cd265b4bf161832ee23abfbe10605cf5b67 (patch)
tree4ca4542fec2a89b59ccbf2d1aeb2398d493227e4 /cli/tests/testdata/lsp/code_action_params_imports.json
parent65ea554afe1ce387ea1d663e6178079ebcf0904f (diff)
fix(lsp): "Add all missing imports" uses correct specifiers (#17216)
This commit fixes "Add all missing imports" quick fix; before it was replacing all occurrences with the same specifier. Now every line returned from TSC is processed individually.
Diffstat (limited to 'cli/tests/testdata/lsp/code_action_params_imports.json')
-rw-r--r--cli/tests/testdata/lsp/code_action_params_imports.json30
1 files changed, 15 insertions, 15 deletions
diff --git a/cli/tests/testdata/lsp/code_action_params_imports.json b/cli/tests/testdata/lsp/code_action_params_imports.json
index 7a5824923..891257ca0 100644
--- a/cli/tests/testdata/lsp/code_action_params_imports.json
+++ b/cli/tests/testdata/lsp/code_action_params_imports.json
@@ -1,15 +1,15 @@
{
"textDocument": {
- "uri": "file:///a/file01.ts"
+ "uri": "file:///a/file00.ts"
},
"range": {
"start": {
- "line": 1,
- "character": 12
+ "line": 0,
+ "character": 0
},
"end": {
- "line": 1,
- "character": 15
+ "line": 6,
+ "character": 0
}
},
"context": {
@@ -17,34 +17,34 @@
{
"range": {
"start": {
- "line": 1,
- "character": 12
+ "line": 0,
+ "character": 50
},
"end": {
- "line": 1,
- "character": 15
+ "line": 0,
+ "character": 67
}
},
"severity": 1,
"code": 2304,
"source": "deno-ts",
- "message": "Cannot find name 'abc'."
+ "message": "Cannot find name 'DuckConfigOptions'."
},
{
"range": {
"start": {
- "line": 2,
- "character": 12
+ "line": 4,
+ "character": 39
},
"end": {
- "line": 2,
- "character": 15
+ "line": 4,
+ "character": 49
}
},
"severity": 1,
"code": 2304,
"source": "deno-ts",
- "message": "Cannot find name 'def'."
+ "message": "Cannot find name 'DuckConfig'."
}
],
"only": [