diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-05-07 03:20:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 03:20:15 +0100 |
commit | cbb78e138ffbfc92ca64f2cce56dd5c629e4f142 (patch) | |
tree | dee2b10f18b74333e54d427e9e848e2e3f3c5fcc /cli/lsp/tsc.rs | |
parent | 1587387bccb6dbecd85f5141dd7543f013d47cd8 (diff) |
refactor(lsp): reland move resolver fields to LspResolver (#23685)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 61308092e..bed71f6d9 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -4130,9 +4130,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()); } } @@ -5110,7 +5110,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, |