Skip to content

Commit 2d7dac8

Browse files
Add confirmation prompt to workspace update action (#557)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent 0407d72 commit 2d7dac8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,14 +655,15 @@ export class Commands {
655655
if (!this.workspace || !this.workspaceRestClient) {
656656
return;
657657
}
658-
const action = await this.vscodeProposed.window.showInformationMessage(
658+
const action = await this.vscodeProposed.window.showWarningMessage(
659659
"Update Workspace",
660660
{
661661
useCustom: true,
662662
modal: true,
663-
detail: `Update ${this.workspace.owner_name}/${this.workspace.name} to the latest version?`,
663+
detail: `Update ${this.workspace.owner_name}/${this.workspace.name} to the latest version?\n\nUpdating will restart your workspace which stops any running processes and may result in the loss of unsaved work.`,
664664
},
665665
"Update",
666+
"Cancel",
666667
);
667668
if (action === "Update") {
668669
await this.workspaceRestClient.updateWorkspaceVersion(this.workspace);

0 commit comments

Comments
 (0)