KEMBAR78
Quick fix "Add all missing imports" for components · Issue #1885 · sveltejs/language-tools · GitHub
Skip to content

Quick fix "Add all missing imports" for components #1885

@brunnerh

Description

@brunnerh

Description

When copying a markup snippet from another Svelte file, multiple component imports might be missing.
It would be helpful to automatically add all such imports at the same time.

Proposed solution

Add a quick fix action that adds the best matching import suggestion for all currently unknown components in the file.

Alternatives

Import each individually.

Additional Information, eg. Screenshots

This would be analogous to this TS/JS quick fix:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.feature requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions