From 72088f2f52d65b2948155a11e7b56722bf6c10f9 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 3 Jun 2024 21:32:28 +0100 Subject: fix(lsp): complete exports for import mapped jsr specifiers (#24054) --- tests/integration/lsp_tests.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tests/integration/lsp_tests.rs') 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!({ -- cgit v1.2.3