summaryrefslogtreecommitdiff
path: root/cli/resolver.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-15 17:50:52 -0400
committerGitHub <noreply@github.com>2024-04-15 17:50:52 -0400
commit6f278e5c40d101f0fb8e7b69e28d34b1c766a8fe (patch)
tree97d3edc0f0b527c3dc7f07ba71d5828cd2c77943 /cli/resolver.rs
parent7e4ee02e2e37db8adfaf4a05aba3819838904650 (diff)
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.
Diffstat (limited to 'cli/resolver.rs')
-rw-r--r--cli/resolver.rs7
1 files changed, 7 insertions, 0 deletions
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<NodeResolution, AnyError> {
+ self.node_resolver.url_to_node_resolution(specifier)
+ }
+
fn handle_node_resolve_result(
&self,
result: Result<Option<NodeResolution>, AnyError>,