LSP: auto import doesn't work correctly with project-root-for-absolute-imports mapping
guy-borderless opened this issue · comments
GuyBorderless commented
Version: Deno 1.43.4 (but occurs with older versions too)
If the project root is mapped for absolute imports with
{
"imports": {
"/": "./",
"./": "./"
}
}
The LSP incorrectly auto-imports from files in subdirectories.
Here is an example repo
The LSP imports from a non-existent path
import { ImportFn } from "./importme.ts";
Instead of
import { ImportFn } from "/importme.ts";
nik-webdevelop commented
Encountered this as well