Skip to content

Refactoring Preview option in Command Palette (part of #151140) - #151566

Merged
Justin Chen (justschen) merged 6 commits into
microsoft:mainfrom
justschen:justin/refactor-fix
Jun 9, 2022
Merged

Justin Chen (justschen) merged 6 commits into
microsoft:mainfrom
justschen:justin/refactor-fix

Conversation

@justschen

Copy link
Copy Markdown
Collaborator

This PR fixes #151140

@mjbvz
Matt Bierner (mjbvz) self-requested a review June 8, 2022 22:28
code: 'undoredo.codeAction',
respectAutoSaveConfig: true
respectAutoSaveConfig: true,
showPreview: options?.showPreviewPane,

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Justin Chen (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
Justin Chen (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