Skip to content

Commit 3322ae6

Browse files
Add confirmation prompt to workspace update action
Adds a warning dialog with explicit consent before updating workspace. Includes warning text about workspace restart and potential data loss. Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent 8dee463 commit 3322ae6

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
@@ -654,14 +654,15 @@ export class Commands {
654654
if (!this.workspace || !this.workspaceRestClient) {
655655
return;
656656
}
657-
const action = await this.vscodeProposed.window.showInformationMessage(
657+
const action = await this.vscodeProposed.window.showWarningMessage(
658658
"Update Workspace",
659659
{
660660
useCustom: true,
661661
modal: true,
662-
detail: `Update ${this.workspace.owner_name}/${this.workspace.name} to the latest version?`,
662+
detail: `Update ${this.workspace.owner_name}/${this.workspace.name} to the latest version?\n\nUpdating will restart your workspace and stop any running processes that may result in loss of unsaved data.`,
663663
},
664664
"Update",
665+
"Cancel",
665666
);
666667
if (action === "Update") {
667668
await this.workspaceRestClient.updateWorkspaceVersion(this.workspace);

0 commit comments

Comments
 (0)