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

fix(lsp): "Add all missing imports" uses correct specifiers #17216

Merged
merged 4 commits into from
Dec 29, 2022

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Dec 29, 2022

This commit fixes "Add all missing imports" quick fix; before
it was replacing all occurrences with the same specifier. Now
every line returned from TSC is processed individually.

Closes #16016

Note that it's a partial fix, because of denoland/vscode_deno#761
the conditions to make it work are somewhat specific.

Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju merged commit ef5f8cd into denoland:main Dec 29, 2022
@bartlomieju bartlomieju deleted the fix_lsp_import_all branch December 29, 2022 20:07
bartlomieju added a commit that referenced this pull request Jan 5, 2023
This commit fixes "Add all missing imports" quick fix; before
it was replacing all occurrences with the same specifier. Now
every line returned from TSC is processed individually.
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.

lsp: "Add all missing imports" VSCode quick fix produces invalid import specifiers
2 participants