Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
add missing await (#100)
Browse files Browse the repository at this point in the history
PBI: 32284 
Task: 32294
  • Loading branch information
LukeSlev authored Aug 8, 2019
1 parent 5faf64b commit 2628732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ export async function activate(context: vscode.ExtensionContext) {
}
);

const deployCodeToDevice = () => {
const deployCodeToDevice = async () => {
console.info("Sending code to device");

logToOutputChannel(outChannel, CONSTANTS.INFO.DEPLOY_DEVICE);

updateCurrentFileIfPython(vscode.window.activeTextEditor);
await updateCurrentFileIfPython(vscode.window.activeTextEditor);

if (currentFileAbsPath === "") {
logToOutputChannel(outChannel, CONSTANTS.ERROR.NO_FILE_TO_RUN, true);
Expand Down

0 comments on commit 2628732

Please sign in to comment.