Skip to content

Commit 344b45e

Browse files
committed
wait for save before continuing
1 parent d4269ce commit 344b45e

File tree

1 file changed

+1
-1
lines changed
  • src/programflow-visualization

1 file changed

+1
-1
lines changed

src/programflow-visualization/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function getProgFlowVizCallback(context: vscode.ExtensionContext, outChan
1919
vscode.window.showWarningMessage('Not a Python file');
2020
return;
2121
}
22-
vscode.window.activeTextEditor?.document.save();
22+
await vscode.window.activeTextEditor?.document.save();
2323

2424
const content = await FileHandler.getContentOf(file);
2525
const fileHash = Md5.hashStr(content);

0 commit comments

Comments
 (0)