Auto import rune files (.svelte.js
/.svelte.ts
) files with full extension.
#2620
Labels
feature request
New feature or request
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'sallowImportingTsExtensions
can be detected.)Alternatives
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: