Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brunnerh opened this issue Dec 6, 2024 · 0 comments
Open

Comments

@brunnerh
Copy link
Member

brunnerh commented Dec 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant