I can imagine that some users might want to turn off the light-bulb menu for C-mantic, because it might be annoying. Of course, the light-bulb menu can be turned off entirely in VS Code's settings, but this affects all extensions and might not be what the user is looking for.
VS Code's API does not appear to offer extensions a way to provide refactorings without them being auto-suggested in the light-bulb menu. Ideally, the user could control whether refactorings are suggested, while still being available in the Refactor... menu either way. It seems like the best that could be done would to to disable refactorings entirely for users that just want to use the commands directly.
A potential workaround I can think of would be to change provided refactorings into source actions, which would then be available in the Source Actions... menu and would not be suggested in the light-bulb menu. That feels kind of messy though. Maybe this is a non-issue though, and users that want to disable refactorings wouldn't care if they are also removed from the Refactor... menu.
I can imagine that some users might want to turn off the light-bulb menu for C-mantic, because it might be annoying. Of course, the light-bulb menu can be turned off entirely in VS Code's settings, but this affects all extensions and might not be what the user is looking for.
VS Code's API does not appear to offer extensions a way to provide refactorings without them being auto-suggested in the light-bulb menu. Ideally, the user could control whether refactorings are suggested, while still being available in the
Refactor...
menu either way. It seems like the best that could be done would to to disable refactorings entirely for users that just want to use the commands directly.A potential workaround I can think of would be to change provided refactorings into source actions, which would then be available in the
Source Actions...
menu and would not be suggested in the light-bulb menu. That feels kind of messy though. Maybe this is a non-issue though, and users that want to disable refactorings wouldn't care if they are also removed from theRefactor...
menu.