-
-
Notifications
You must be signed in to change notification settings - Fork 230
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
VS Code can't find references in Svelte files that are imported with JSDoc.
Example:
- Export class
MyClassfromutils.ts - Import it in a component with TypeScript: ✅ works
- Import it in a component with JSDoc: ❌ fails
As shown in the screenshot below, the component importing MyClass with JSDoc (SampleJs.svelte) is not found. Only SampleTs.svelte is found:
Other ways of importing like /** @typedef { import('./utils').MyClass } MyClass */ don't work either.
I tried both the "Svelte for VS Code" extension and manually installing and setting up typescript-svelte-plugin
Reproduction
- Export a declaration from a JS/TS file
- Import it in a Svelte component with JSDoc
- In the exporting file, right click the declaration and select "Find All References"
- The Svelte component won't show up in "References"
Expected behaviour
The Svelte component should show up in "References"
System Info
- OS: macOS
- IDE: VSCode
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working