Skip to content

add missing imports source action and tests#2744

Merged
dummdidumm merged 3 commits intosveltejs:masterfrom
datstarkey:add-missing-imports-source-action
May 2, 2025
Merged

add missing imports source action and tests#2744
dummdidumm merged 3 commits intosveltejs:masterfrom
datstarkey:add-missing-imports-source-action

Conversation

@datstarkey
Copy link
Contributor

Fixes #2616

Adds the source action to addMissingImports, reusing the same quick fix action as "import all missing"

Added two tests to show it working with missing imports and without.

works with the

  "editor.codeActionsOnSave": {
    "source.addMissingImports": "always",
  },

to add the imports on save, producing similar functionality to the typescript version.

@dummdidumm
Copy link
Member

Thank you!

@dummdidumm dummdidumm merged commit 5366e78 into sveltejs:master May 2, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

Add Missing Imports on file save

3 participants