-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Test: Refactoring Preview Code Action #153392
Labels
Milestone
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Refs #151140
Complexity: 2
Create Issue
Set up:
In the Command Palette, there is a new action called
Refactor with Preview...
In order to run this, highlight some code, select the option by searching and runningRefactor with Preview...
and it should open up the refactoring menu with some options. Click on any of the options and the Refactor Preview (bulk editor) should open up in the workbench. Clicking on the refactorings available in the Refactor Preview pane will open up a side-by-side view in the editor. Edits must be made in a saved file, or the side-by-side will not show up.Things to keep in mind: Currently the UX is not excellent - we're simply using the refactor preview from the bulk editor, so the preview pane itself might get incredibly bloated with ↩️ (new line indicators) and lots of red highlighted + crossed out code. The core refactoring results should not change.
After clicking on the option from refactoring menu:
After clicking in the refactoring preview pane:
Testing:
Refactor with Preview
from the command palette.Rename Symbol
.CTRL + Z
and highlight the same bit of code. RunRefactor
and the same type of refactoring.Some Questions:
Refactoring with Preview
in the context menu, or having fly-outs instead of in the workbench, etc).The text was updated successfully, but these errors were encountered: