From 2b247be517d789a37e532849e2e40b724af0918f Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 27 Jan 2023 17:36:23 -0500 Subject: fix: ensure "fs" -> "node:fs" error/quick fix works when user has import map (#17566) Closes #17563 --- cli/tests/integration/lsp_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration/lsp_tests.rs') diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 1fd619a40..d149e6919 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -4563,7 +4563,7 @@ fn lsp_completions_node_specifier() { .filter(|d| { d.code == Some(lsp::NumberOrString::String( - "import-prefix-missing".to_string(), + "import-node-prefix-missing".to_string(), )) }) .collect::>(); @@ -4602,7 +4602,7 @@ fn lsp_completions_node_specifier() { "end": { "line": 0, "character": 19 } }, "severity": 1, - "code": "import-prefix-missing", + "code": "import-node-prefix-missing", "source": "deno", "message": "Relative import path \"fs\" not prefixed with / or ./ or ../\nIf you want to use a built-in Node module, add a \"node:\" prefix (ex. \"node:fs\").", "data": { -- cgit v1.2.3