Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d7dac8

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 parent0407d72 commit2d7dac8

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-
constaction=awaitthis.vscodeProposed.window.showInformationMessage(
658+
constaction=awaitthis.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
awaitthis.workspaceRestClient.updateWorkspaceVersion(this.workspace);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp