-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add code action for fixing / disabling issues #39
Comments
If no one is working on it I would like to get it :) |
is this being worked on? |
@gaurav5430 You can take it. I failed with free time :( |
We can't implement code actions for individual problems just yet because we don't get fix information per warning from Stylelint (see #315 (comment) for more details). However, we can add code actions for fixing all problems. Adding this to the v1.2.0 milestone. |
* feat: Add problem code actions Resolves #39, Resolves #185 Also fixes a bug where configuration would not update when edited * test: patch non-code-action unit tests * test: resolve cspell lint error * test: get unit tests to pass * test: add e2e test for code actions * test: wait for code action handler registration * test: use better checks * ci: skip code action edit e2e tests for now * docs: add changelog entries
Done in #322. |
This development did not include single fixes at a time, did it? Are there any plans to develop this functionality? Thanks 🙏 |
VSCode supports "code actions" on particular lines, which appear as little light bulbs on hover.
The ESLint extension uses them to expose quick fixes for lines that contain a rule violations allowing the user to autofix the issue (if available), or to disable linting for that line by adding an
eslint-disable-next-line [ruleName]
comment above the rule.For example in the following screenshot there is a violation of the
prettier/prettier
rule - the extra space after the}
:It'd be neat if this extension could do the same for offering the option to add ignore comments to lines with violations
The text was updated successfully, but these errors were encountered: