Skip to content

Add Missing Imports on file save #2616

@datstarkey

Description

@datstarkey

Description

In vscode, you can change your editor actions to do various things on save like organise imports, fixAll etc.

 "editor.codeActionsOnSave": { "source.fixAll": "always", "source.addMissingImports": "always", "source.removeUnusedImports": "always", "source.organizeImports": "always" } 

3 of these options work within the script tag of a svelte file fixAll, removeUnusedImports, organizeImports, whilst addMissingImports does not.

Proposed solution

it would be nice if addMissingImports also could work like it does in typescript files.

Alternatives

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions