-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugSomething isn't working correctlySomething isn't working correctlylsprelated to the language serverrelated to the language server
Description
When running the Infer function return type
command on a function returning JSX we get the file specifier instead of import("preact/jsx-runtime").JSX.Element
:
export function Foo(): import("file:///Users/marvinh/Library/Caches/deno/npm/registry.npmjs.org/preact/10.22.0/src/jsx").JSXInternal.Element {
return <h1>hello world</h1>;
}
deno-infer-type-jsx.mp4
Steps to reproduce
- Clone https://github.com/marvinhagemeister/deno-infer-type-repro
- Open
mod.tsx
in vscode - Put the cursor inside the
Foo
identifier - Run the
infer function return type
quick fix
Version: Deno 1.44.4
guy-borderless
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctlylsprelated to the language serverrelated to the language server