summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/lsp')
-rw-r--r--cli/tests/testdata/lsp/code_action_response_imports.json4
-rw-r--r--cli/tests/testdata/lsp/code_action_response_refactor.json16
2 files changed, 10 insertions, 10 deletions
diff --git a/cli/tests/testdata/lsp/code_action_response_imports.json b/cli/tests/testdata/lsp/code_action_response_imports.json
index e4d926bdd..cb1de6d77 100644
--- a/cli/tests/testdata/lsp/code_action_response_imports.json
+++ b/cli/tests/testdata/lsp/code_action_response_imports.json
@@ -1,6 +1,6 @@
[
{
- "title": "Import 'abc' from module \"./file00.ts\"",
+ "title": "Add import from \"./file00.ts\"",
"kind": "quickfix",
"diagnostics": [
{
@@ -120,7 +120,7 @@
}
},
{
- "title": "Import 'def' from module \"./file00.ts\"",
+ "title": "Add import from \"./file00.ts\"",
"kind": "quickfix",
"diagnostics": [
{
diff --git a/cli/tests/testdata/lsp/code_action_response_refactor.json b/cli/tests/testdata/lsp/code_action_response_refactor.json
index a9fbd2827..c2797812e 100644
--- a/cli/tests/testdata/lsp/code_action_response_refactor.json
+++ b/cli/tests/testdata/lsp/code_action_response_refactor.json
@@ -129,8 +129,8 @@
}
},
{
- "title": "Convert named imports to namespace import",
- "kind": "refactor.rewrite.import.namespace",
+ "title": "Convert named imports to default import",
+ "kind": "refactor.rewrite.import.default",
"isPreferred": false,
"disabled": {
"reason": "Selection is not an import declaration."
@@ -148,15 +148,15 @@
}
},
"refactorName": "Convert import",
- "actionName": "Convert named imports to namespace import"
+ "actionName": "Convert named imports to default import"
}
},
{
- "title": "Convert to optional chain expression",
- "kind": "refactor.rewrite.expression.optionalChain",
+ "title": "Convert named imports to namespace import",
+ "kind": "refactor.rewrite.import.namespace",
"isPreferred": false,
"disabled": {
- "reason": "Could not find convertible access expression"
+ "reason": "Selection is not an import declaration."
},
"data": {
"specifier": "file:///a/file.ts",
@@ -170,8 +170,8 @@
"character": 0
}
},
- "refactorName": "Convert to optional chain expression",
- "actionName": "Convert to optional chain expression"
+ "refactorName": "Convert import",
+ "actionName": "Convert named imports to namespace import"
}
}
]