-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
lightbulb widget with move symbol to
action covers code in python
#202767
Comments
Hi @roblourens thank you for posting this issue. That's curious, I thought that TypeScript offers only |
@aiday-mar it might be contributed from python/pylance? Maybe further discussion could having another setting (like onCode) which minimizes lightbulb being shown by only showing lightbulb for if there are more than a certain # of refactors (these code actions have the refactor type iirc) or if there are quick fixes? This way we're not just fixing in each extension, and it might be a more blanket approach. No real preference here, just want to throw some smol ideas out there. |
Hey @justschen those are good ideas. Indeed on most cursor positions, there are code actions available in the lightbulb menu, so it appears very often. We can indeed decide to show the lightbulbs only if more than 'n' actions are available where 'n' could be defined by the user. The issue I see here is that we would need to define some sort of importance metric, so that importance code actions when present, always make the lightbulb appear. I also think that with this change it could be that the lightbulb does not show up in cases where the user would have expected it to. |
@aiday-mar that's a good point! I know there is importance in certain contexts already:
both don't really help in this case since the code option appearing is basically the same |
move symbol to
action covers code in python
Agreed. For the |
fixed by #221419 and microsoft/TypeScript#58548 |
Is this right? Everywhere I go, a little icon is covering my code, I just want to read my code. The action in the light bulb is "move symbol to"
The text was updated successfully, but these errors were encountered: