diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-12-12 10:26:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 10:26:27 +0000 |
commit | 7d88e48296f2b88c646335b2868ca9e48b08a3d2 (patch) | |
tree | 32a2fa31383aaa4c4dd7d0d7a45898290b21e79a /cli/lsp/tsc.rs | |
parent | 49a6daaa8386f321d23f57fb5f3ae365abf82a80 (diff) |
perf(lsp): use null types instead of stub modules (#21541)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 8b771a478..c919b3b61 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3877,11 +3877,7 @@ fn op_load<'s>( let specifier = state.specifier_map.normalize(specifier)?; let maybe_load_response = if specifier.as_str() == "internal:///missing_dependency.d.ts" { - Some(LoadResponse { - data: Arc::from("declare const __: any;\nexport = __;\n"), - script_kind: crate::tsc::as_ts_script_kind(MediaType::Dts), - version: Some("1".to_string()), - }) + None } else { let asset_or_document = state.get_asset_or_document(&specifier); asset_or_document.map(|doc| LoadResponse { |