summaryrefslogtreecommitdiff
path: root/cli/lsp/tsc.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-04-30 02:41:19 +0100
committerGitHub <noreply@github.com>2024-04-30 02:41:19 +0100
commit5cae3439912ad60eb2866f3d4372a5fe4d0de957 (patch)
tree87e5e8ad3a7c3bb399277198146cd276f60220b1 /cli/lsp/tsc.rs
parent783533d2e354ad73356d7517b26293e48c10fc17 (diff)
refactor(lsp): move fields from Documents to LspResolver (#23585)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r--cli/lsp/tsc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs
index 8a20ffb0f..06f618e1f 100644
--- a/cli/lsp/tsc.rs
+++ b/cli/lsp/tsc.rs
@@ -4124,9 +4124,9 @@ fn op_script_names(state: &mut OpState) -> Vec<String> {
}
// inject these next because they're global
- for import in documents.module_graph_imports() {
- if seen.insert(import.as_str()) {
- result.push(import.to_string());
+ for specifier in state.state_snapshot.resolver.graph_import_specifiers() {
+ if seen.insert(specifier.as_str()) {
+ result.push(specifier.to_string());
}
}
@@ -5095,7 +5095,7 @@ mod tests {
)
.await;
let resolver = LspResolver::default()
- .with_new_config(&config, None, None)
+ .with_new_config(&config, cache.clone(), None, None)
.await;
StateSnapshot {
project_version: 0,