Closed Bickio closed 1 year ago
Thanks for reporting!
The root cause is that the plugin doesn't follow references from actually exported symbol (and export default is a separate statement that references the variable)
Contained in WEB-58397 use the svelte language server.
Example store
store.ts
Note: I used two import types here to reduce code snippets, but the issue persists when using only the default export
Using named export (works as expected):
App.svelte
Type hint for
$store
showsexport const store: string
Using default export (broken):
App.svelte
Type hint for
$store
showsexport const store: Readable<string>