Open Jimdooz opened 4 weeks ago
When using Deno's unstable feature sloppy-imports, VSCode's Language Server Protocol (LSP) fails to properly handle type definitions that are re-exported through intermediary files.
sloppy-imports
Project Structure
project/ ├── deno.json └── main.ts shared/ ├── mod.ts └── type.ts
project/deno.json
{ "unstable": ["sloppy-imports"] }
project/main.ts
import { ABC } from "../shared/mod.ts" const _letter: ABC = "";
shared/mod.ts
export type { ABC } from "./type"
shared/type.ts
export type ABC = "A" | "B" | "C"
Problem
When using Deno's unstable feature
sloppy-imports
, VSCode's Language Server Protocol (LSP) fails to properly handle type definitions that are re-exported through intermediary files.Steps
Project Structure
File Contents
project/deno.json
project/main.ts
shared/mod.ts
shared/type.ts
Expected behavior
Versions