Skip to content

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

Open
Danny Tuppeny (DanTup) wants to merge 5 commits into
microsoft:mainfrom
DanTup:add-show-preview-to-workspace-edit-metadata
Open

Danny Tuppeny (DanTup) wants to merge 5 commits into
microsoft:mainfrom
DanTup:add-show-preview-to-workspace-edit-metadata

Conversation

@DanTup

@DanTup Danny Tuppeny (DanTup) commented Apr 11, 2024 •

Copy link
Copy Markdown
Contributor

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

Matt Bierner (@mjbvz) Johannes Rieken (@jrieken) is anyone able to give me a pointer to where tests for this should be added?

Comment thread src/vscode-dts/vscode.d.ts Outdated
@vcalescu

Copy link
Copy Markdown

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

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

@SanjulaGanepola

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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

6 participants