summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-06-03 21:32:28 +0100
committerGitHub <noreply@github.com>2024-06-03 21:32:28 +0100
commit72088f2f52d65b2948155a11e7b56722bf6c10f9 (patch)
treeb752b0eb57dcfbf48d47144fcfa4f57ae1933b80 /tests
parent13924fdb1b75325b9b6116accb800bd9f567f2c1 (diff)
fix(lsp): complete exports for import mapped jsr specifiers (#24054)
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/lsp_tests.rs15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs
index ee3b06d37..a46c2ab25 100644
--- a/tests/integration/lsp_tests.rs
+++ b/tests/integration/lsp_tests.rs
@@ -1224,6 +1224,7 @@ fn lsp_import_map_import_completions() {
r#"{
"imports": {
"/~/": "./lib/",
+ "/#/": "./src/",
"fs": "https://example.com/fs/index.js",
"std/": "https://example.com/std@0.123.0/"
}
@@ -1296,7 +1297,14 @@ fn lsp_import_map_import_completions() {
"sortText": "/~",
"insertText": "/~",
"commitCharacters": ["\"", "'"],
- }
+ }, {
+ "label": "/#",
+ "kind": 19,
+ "detail": "(import map)",
+ "sortText": "/#",
+ "insertText": "/#",
+ "commitCharacters": ["\"", "'"],
+ },
]
})
);
@@ -1335,8 +1343,8 @@ fn lsp_import_map_import_completions() {
"items": [
{
"label": "b.ts",
- "kind": 9,
- "detail": "(import map)",
+ "kind": 17,
+ "detail": "(local)",
"sortText": "1",
"filterText": "/~/b.ts",
"textEdit": {
@@ -7938,7 +7946,6 @@ fn lsp_completions_snippet() {
(5, 13),
json!({ "triggerKind": 1 }),
);
- assert!(!list.is_incomplete);
assert_eq!(
json!(list),
json!({