From 6f278e5c40d101f0fb8e7b69e28d34b1c766a8fe Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 15 Apr 2024 17:50:52 -0400 Subject: fix(lsp): improved cjs tracking (#23374) Our cjs tracking was a bit broken. It was marking stuff as esm that was actually cjs leading to type checking errors. --- cli/resolver.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/resolver.rs') diff --git a/cli/resolver.rs b/cli/resolver.rs index fc326e1b1..d5a85e001 100644 --- a/cli/resolver.rs +++ b/cli/resolver.rs @@ -223,6 +223,13 @@ impl CliNodeResolver { Ok(specifier) } + pub fn url_to_node_resolution( + &self, + specifier: ModuleSpecifier, + ) -> Result { + self.node_resolver.url_to_node_resolution(specifier) + } + fn handle_node_resolve_result( &self, result: Result, AnyError>, -- cgit v1.2.3