[extension] Save on run and submit
This commit is contained in:
parent
8564dd26ec
commit
6261ee0bde
@ -86,6 +86,7 @@ export class BWPanel {
|
|||||||
webview.onDidReceiveMessage(async (data) => {
|
webview.onDidReceiveMessage(async (data) => {
|
||||||
switch (data.type) {
|
switch (data.type) {
|
||||||
case 'onSubmit': {
|
case 'onSubmit': {
|
||||||
|
await vscode.workspace.saveAll();
|
||||||
if (!data.value) {
|
if (!data.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -112,6 +113,7 @@ export class BWPanel {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'onRun': {
|
case 'onRun': {
|
||||||
|
await vscode.workspace.saveAll();
|
||||||
if (!data.value) {
|
if (!data.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user