-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Disable or remove specific code action/fixes/refactoring #37332
Comments
@mjbvz is there any editor-side support for this? |
We don't have a UI for managing suggestions/actions. For now, this would likely be provided using a setting that VS Code could pass to TS I believe there are two parts to this request:
|
like this
what about:
|
Is there any progress with this feature? I would like to remove SOME but not all VSCode suggestions. |
This would help avoid the auto deletion of unreachable code like occurs with Prettier + ESLint in VSCode, if could just disable that single code action, while still allowing other Prettier formatting to occur, like mentioned in microsoft/vscode#109530. |
Search Terms
Suggestion
microsoft/vscode#92305
Because when some code action is available, there will be a icon shows on the code editing area.
If some fixes I always not want, it's annoying that the clickable icon will show every time my cursor move on the code or select some code or some other actions. Especially when the current line left is not white spaces, the icon will show at previous line and cover the privious line code.
For example, I always want use require in js file not import.
And maybe some visual effect like the dash underline, the show fixes button in the popup tip, the dimmed color text should be removed, when the relate code action is disabled. Because these hint there are problems in my code but actually not.
Use Cases
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: