Skip to content

Add optional "showPreview" to WorkspaceEditMetadata to allow forcing preview without needsConfirmation changes #210175

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Apr 11, 2024

bulkEditService.apply already supported a showPreview flag in its options, but there was no way to provide it when calling applyEdit. This adds a new flag to WorkspaceEditMetadata that will be passed along.

I couldn't find automated tests that verify whether the preview was triggered - if someone can point me at these and give some pointers on how best to test, I will happily add them. Thanks!

…preview without needsConfirmation changes

bulkEditService.apply already supported a showPreview flag in its options, but there was no way to provide it when calling `applyEdit`. This adds a new flag to `WorkspaceEditMetadata`  that will be passed along.

Fixes microsoft#207578 by allowing preview without needsConfirmation
Also see microsoft#200991
@DanTup
Copy link
Contributor Author

DanTup commented May 2, 2024

@mjbvz @jrieken is anyone able to give me a pointer to where tests for this should be added?

@vcalescu
Copy link

vcalescu commented Oct 7, 2024

Hi! I made a suggestion to change one line, just for a bit more clarity. Please let me know how I can help with the docs here, whether it's writing or reviewing.

@makandre
Copy link

This feature would be super useful! Will it make it into a release soon?

@SanjulaGanepola
Copy link

Any update on getting this feature released? I'm also looking to use this for an extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support controlling whether edits are pre-ticked in WorkspaceEdits with needsConfirmation=true
5 participants