Auto import rune files (.svelte.js/.svelte.ts) files with full extension.

#2620

Issue

Open
B
brunnerh
Dec 6, 2024, 2:55 PM

Description

If a symbol from a .svelte.js file is selected from a suggestion dropdown in VS Code, the added import lacks the .js extension.

If the extension is missing, this can cause conflicts with components that share the prefix, it also is plain confusing to the uninitiated since it looks like a component is being imported.

Proposed solution

Always import as .svelte.js, not sure if this is possible though.

(Maybe use .svelte.ts if state of TS's allowImportingTsExtensions can be detected.)

Alternatives

No response

Additional Information, eg. Screenshots

No response

👍 1

Info

Assignees None
Labels feature request
Milestone None