mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(lsp): include "node:" prefix for node builtin auto-imports (#27404)
This commit is contained in:
parent
9529d2a77f
commit
28fb691f4e
3 changed files with 110 additions and 12 deletions
|
@ -270,6 +270,10 @@ impl<'a> TsResponseImportMapper<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
if specifier.scheme() == "node" {
|
||||
return Some(specifier.to_string());
|
||||
}
|
||||
|
||||
if let Some(jsr_path) = specifier.as_str().strip_prefix(jsr_url().as_str())
|
||||
{
|
||||
let mut segments = jsr_path.split('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue