Skip to content

Commit bdf399f

Browse files
hlshenyuchenshi
andauthored
Save file before execution (#8601)
* save file before execution * Update firebase-vscode/src/data-connect/execution/execution.ts Co-authored-by: Yuchen Shi <yuchenshi@google.com> --------- Co-authored-by: Yuchen Shi <yuchenshi@google.com>
1 parent 2263d68 commit bdf399f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firebase-vscode/src/data-connect/execution/execution.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,13 @@ export function registerExecution(
327327
executionHistoryTreeView,
328328
vscode.commands.registerCommand(
329329
"firebase.dataConnect.executeOperation",
330-
(ast, location, instanceType: InstanceType) => {
330+
async (ast, location, instanceType: InstanceType) => {
331331
analyticsLogger.logger.logUsage(
332332
instanceType === InstanceType.LOCAL
333333
? DATA_CONNECT_EVENT_NAME.RUN_LOCAL
334334
: DATA_CONNECT_EVENT_NAME.RUN_PROD,
335335
);
336+
await vscode.window.activeTextEditor?.document.save();
336337
executeOperation(ast, location, instanceType);
337338
},
338339
),

0 commit comments

Comments
 (0)