-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 code cleanup in LSP #49056
Disable code cleanup in LSP #49056
Conversation
Note: I wasn't sure whether we would also have to disable code cleanup in the IVsHierarchyCodeCleanupScope case (mainly because I'm unsure exactly what it is) - currently it's just disabled in the text buffer case, which at least seems to fix the original bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just skips applying the cleanup, correct? Is there a way we can tell the platform not to show the buttons too? Presumably right now the user can click them and just nothing happens, which is not good.
@davidwengier Hmm, not that I know of, but I could be wrong. cc @CyrusNajmabadi, would you happen to know whether there's a way to hide the code cleanup button in this scenario? |
@allisonchou see #44409 for hiding the broom. afaik there is not currently a good way. |
@dibarbet Thanks! I left a comment on the original bug asking for the current status of being able to hide unsupported features. |
Yep, I'm fine with that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I, also, agree.
Code cleanup currently doesn't work in LSP - tracking issue here: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1094627
We should disable code cleanup for now.
Closes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1193339/