mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor(lsp): pass module parameters to tsc requests (#29674)
This commit is contained in:
parent
ccc30edcb5
commit
cb9245c69a
4 changed files with 518 additions and 639 deletions
|
@ -1090,13 +1090,7 @@ async fn generate_ts_diagnostics(
|
|||
let mut enabled_modules_with_diagnostics = Vec::new();
|
||||
for ((scope, notebook_uri), enabled_modules) in enabled_modules_by_scope {
|
||||
let (diagnostics_list, ambient_modules) = ts_server
|
||||
.get_diagnostics(
|
||||
snapshot.clone(),
|
||||
enabled_modules.iter().map(|m| m.specifier.as_ref()),
|
||||
scope.as_ref(),
|
||||
notebook_uri.as_ref(),
|
||||
&token,
|
||||
)
|
||||
.get_diagnostics(snapshot.clone(), &enabled_modules, &token)
|
||||
.await?;
|
||||
enabled_modules_with_diagnostics
|
||||
.extend(enabled_modules.into_iter().zip(diagnostics_list));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue