summaryrefslogtreecommitdiff
path: root/cli/lsp/tsc.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-31 12:48:18 -0400
committerGitHub <noreply@github.com>2023-03-31 16:48:18 +0000
commit87ccd4bcd14bd67037c709829575f62caf8251bb (patch)
treed63616c9754a0d50e168d6da0f12140a8cfd1b78 /cli/lsp/tsc.rs
parentaa9b94a80eadde7737417eb7d412559bc567c77c (diff)
fix(lsp): better handling of `data:` urls (#18527)
1. Log instead of error when the referrer can't be found 2. Fixes typescript to resolve data urls correctly. Properly documented here: https://github.com/denoland/TypeScript/pull/4/files#diff-180da7c288743d11d8590d30f0c07c48e5dcf291aa671bbea0dd520a9a1359d2 Closes #18524
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r--cli/lsp/tsc.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs
index f02668910..2980e546b 100644
--- a/cli/lsp/tsc.rs
+++ b/cli/lsp/tsc.rs
@@ -2779,13 +2779,13 @@ fn op_resolve(
.collect(),
)
}
- None => Err(custom_error(
- "NotFound",
- format!(
+ None => {
+ lsp_warn!(
"Error resolving. Referring specifier \"{}\" was not found.",
args.base
- ),
- )),
+ );
+ Ok(vec![None; args.specifiers.len()])
+ }
};
state.performance.measure(mark);