Open heroboy opened 4 years ago
@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:
Disabling specific suggestion diagnostics #28825 This seems like the main point of this issue
Disabling specific fixes / refactorings. Specifically refactorings that do not require any selection. We should get more user feedback before investigating this
like this
"editor.codeActionsOnSave": [
"source.organizeImports",
"source.fixAll"
]
what about:
"editor.codeActionsNotShow": [
"source.organizeImports",
"source.fixAll"
]
I would like an option to remove this:
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 https://github.com/microsoft/vscode/issues/109530.
Search Terms
Suggestion
https://github.com/microsoft/vscode/issues/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: