diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-09-16 15:51:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-16 15:51:35 +0100 |
commit | d13e6e6db8b3d3f1b8a4e86492e406c3c42d2a9d (patch) | |
tree | f7b764b6ff57e320b3a414d6a5ada0d4c48f664e /cli/tests/integration/lsp_tests.rs | |
parent | 430b63c2c4d6567a77e77980058ef13b45a9f30e (diff) |
feat(lsp): include source in auto import completion label (#20523)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 6363a08f6..f95e94182 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -5212,6 +5212,9 @@ fn lsp_completions_auto_import() { let req = json!({ "label": "foo", + "labelDetails": { + "description": "./b.ts", + }, "kind": 6, "sortText": "16", "commitCharacters": [ @@ -5243,6 +5246,9 @@ fn lsp_completions_auto_import() { res, json!({ "label": "foo", + "labelDetails": { + "description": "./b.ts", + }, "kind": 6, "detail": "const foo: \"foo\"", "documentation": { @@ -5323,6 +5329,9 @@ fn lsp_npm_completions_auto_import_and_quick_fix_no_import_map() { res, json!({ "label": "getClient", + "labelDetails": { + "description": "npm:@denotest/types-exports-subpaths@1/client", + }, "kind": 3, "detail": "function getClient(): 5", "documentation": { @@ -5435,6 +5444,9 @@ fn lsp_npm_completions_auto_import_and_quick_fix_no_import_map() { res, json!({ "label": "chalk", + "labelDetails": { + "description": "npm:chalk@5.0", + }, "kind": 6, "sortText": "16", "additionalTextEdits": [ @@ -5635,6 +5647,9 @@ fn lsp_completions_auto_import_and_quick_fix_with_import_map() { res, json!({ "label": "getClient", + "labelDetails": { + "description": "types-exports-subpaths/client", + }, "kind": 3, "detail": "function getClient(): 5", "documentation": { @@ -5747,6 +5762,9 @@ fn lsp_completions_auto_import_and_quick_fix_with_import_map() { res, json!({ "label": "chalk", + "labelDetails": { + "description": "chalk", + }, "kind": 6, "sortText": "16", "additionalTextEdits": [ @@ -5854,6 +5872,9 @@ fn lsp_completions_auto_import_and_quick_fix_with_import_map() { res, json!({ "label": "printHello", + "labelDetails": { + "description": "print_hello", + }, "kind": 3, "sortText": "16", "additionalTextEdits": [ |