diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-06-28 18:18:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 18:18:21 +0100 |
commit | 2ddae872f956ddd84656a302aa5f6b752f6a6ab5 (patch) | |
tree | eebf667d2b9473b61f4c81021db7f73e8a2a83c4 /cli/lsp/tsc.rs | |
parent | ec9963570bb3259952e3729517d665d70131c072 (diff) |
fix(lsp): don't use global cache paths for scope allocation (#24353)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 3239ba700..4ef0d4e64 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -463,7 +463,7 @@ impl TsServer { let mut diagnostics_map = IndexMap::with_capacity(specifiers.len()); let mut specifiers_by_scope = BTreeMap::new(); for specifier in specifiers { - let scope = if specifier.scheme() == "file" { + let scope = if snapshot.documents.is_valid_file_referrer(&specifier) { snapshot .config .tree |