Skip to content

Commit a35cc33

Browse files
committed
Improve unsaved changes warning in ComponentsPacksWebviewMain; update button labels and message detail for clarity.
1 parent 754c7ce commit a35cc33

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/views/manage-components-packs/components-packs-webview-main.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ export class ComponentsPacksWebviewMain {
117117
if (await this.isDirty()) {
118118
const buttonOptions = [
119119
{ title: 'Save' },
120-
{ title: 'Discard', isCloseAffordance: true },
121-
{ title: 'Reopen' },
120+
{ title: 'Don\'t Save', isCloseAffordance: true },
121+
{ title: 'Cancel' },
122122
];
123-
const messageOptions: vscode.MessageOptions = { modal: true, detail: 'Do you want to save changes before closing?' };
123+
const messageOptions: vscode.MessageOptions = { modal: true, detail: 'Your changes will be lost if you don\'t save them.' };
124124

125125
const pick = (await vscode.window.showWarningMessage(
126-
'Unsaved changes will be lost.',
126+
'Do you want to save the changes you made to the Solution?',
127127
messageOptions,
128128
...buttonOptions,
129129
)) || { title: 'Cancel' };
@@ -133,10 +133,10 @@ export class ComponentsPacksWebviewMain {
133133
await this.handleApplyComponentSet();
134134
discardView();
135135
break;
136-
case 'Reopen':
136+
case 'Cancel':
137137
this.webviewManager.createOrShowPanel();
138138
break;
139-
case 'Discard':
139+
case 'Don\'t Save':
140140
default:
141141
discardView();
142142
break;

0 commit comments

Comments
 (0)