summaryrefslogtreecommitdiff
path: root/cli/lsp
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-05 16:22:13 +0200
committerGitHub <noreply@github.com>2024-09-05 14:22:13 +0000
commitc678550a176ce5592d4b6e7ffb918e6926858a45 (patch)
treeeb1a1f7ce99f95bf6e4086a75bc7f3739a5b23a1 /cli/lsp
parent15fce5b290d7dc3eb503a70bd8a10aaf72a09f5e (diff)
BREAKING: remove "emit" and "map" from deno info output (#25468)
The map field has been empty for years now and we don't want the emit file to be exposed so it allows us to iterate on making the cache faster. Additionally, it's racy/unreliable to rely on this information. Instead, people should emit the TS files themselves using tools like deno_emit, typescript, esbuild, etc. Closes https://github.com/denoland/deno/issues/17703
Diffstat (limited to 'cli/lsp')
-rw-r--r--cli/lsp/documents.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index ee9a52297..d6af96b23 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -1524,12 +1524,16 @@ impl<'a> deno_graph::source::Loader for OpenDocumentsGraphLoader<'a> {
fn cache_module_info(
&self,
specifier: &deno_ast::ModuleSpecifier,
+ media_type: MediaType,
source: &Arc<[u8]>,
module_info: &deno_graph::ModuleInfo,
) {
- self
- .inner_loader
- .cache_module_info(specifier, source, module_info)
+ self.inner_loader.cache_module_info(
+ specifier,
+ media_type,
+ source,
+ module_info,
+ )
}
}