Skip to content

Commit 045d887

Browse files
Remove on-close events from json-config-editor
This will force the user to use the button commands in the nav bar. Signed-off-by: Will Yang <william.yang@ericsson.com>
1 parent 70eed83 commit 045d887

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

vscode-trace-extension/src/json-editor/json-editor.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,20 +287,12 @@ export class JsonConfigEditor {
287287
const validation = await this.schemaService.validateJsonFile(this.tempFileUri, schema);
288288

289289
if (validation.isValid && validation.content) {
290-
const submit = this.userClickedSubmit
291-
? 'Yes'
292-
: await vscode.window.showInformationMessage(
293-
'Do you want to submit this configuration?',
294-
'Yes',
295-
'No'
296-
);
297-
298-
if (submit === 'Yes') {
290+
if (this.userClickedSubmit) {
299291
vscode.window.showInformationMessage('Configuration submitted successfully');
300292
return validation.content;
301293
}
302294

303-
return undefined; // User chose not to submit
295+
return undefined; // User closed the window without submitting
304296
} else if (validation.errors) {
305297
this.displayValidationErrorDialogue(
306298
`Your configuration was not submitted because it had errors`,

0 commit comments

Comments
 (0)