KEMBAR78
Refactoring Preview option in Command Palette (part of #151140) by justschen · Pull Request #151566 · microsoft/vscode · GitHub
Skip to content

Conversation

@justschen
Copy link
Collaborator

This PR fixes #151140

@vscodenpa vscodenpa added this to the June 2022 milestone Jun 8, 2022
@mjbvz mjbvz self-requested a review June 8, 2022 22:28
code: 'undoredo.codeAction',
respectAutoSaveConfig: true
respectAutoSaveConfig: true,
showPreview: options?.showPreviewPane,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] Potentially align these names: showPreview vs showPreviewPane vs preview

onSelectCodeAction: async (action) => {
this.delegate.applyCodeAction(action, /* retrigger */ true);
onSelectCodeAction: async (action, trigger) => {
if (trigger.preview !== undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may be incorrect as we always want to apply the refactoring . Instead try using Boolean(trigger.preview) to convert trigger.preview to a boolean

@justschen justschen merged commit a38448d into microsoft:main Jun 9, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2022
@justschen justschen deleted the justin/refactor-fix branch August 8, 2024 21:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow refactorings to be previewed

3 participants