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

feat(lsp): quick fix actions to ignore lint errors #10627

Merged
merged 4 commits into from Jun 21, 2021

Conversation

satyarohith
Copy link
Member

@satyarohith satyarohith commented May 13, 2021

Introduces quick-fix actions to ignore lint errors.

CleanShot.2021-06-16.at.12.13.28.mp4

Closes #10122

cli/lsp/analysis.rs Outdated Show resolved Hide resolved
cli/lsp/analysis.rs Outdated Show resolved Hide resolved
@satyarohith satyarohith marked this pull request as ready for review June 16, 2021 08:21
@bartlomieju bartlomieju added this to the 1.12.0 milestone Jun 18, 2021
Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

The only change that I think we need to make is to add a CodeActionKind of DenoLint since we differ the sources of the lint information as well, so I think we should maintain that separation here.

Otherwise really good, thank you!

Copy link
Contributor

@kitsonk kitsonk left a comment

Choose a reason for hiding this comment

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

LGTM

@kitsonk kitsonk merged commit 952caa7 into denoland:main Jun 21, 2021
@satyarohith satyarohith deleted the lint_ignore_code_action branch June 21, 2021 06:46
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: lint diagnostics should have a quick fix to add ignore comment
5 participants