Skip to content

Commit

Permalink
add delete timestamp event
Browse files Browse the repository at this point in the history
test msg

fix lint

rm test msg
  • Loading branch information
brianignacio5 committed Sep 23, 2024
1 parent 8469e0d commit 5cad306
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/build/buildCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ export async function buildCommand(
await buildTask.buildDfu();
await TaskManager.runTasks();
}
const buildDirPath = readParameter(
"idf.buildPath",
workspace
) as string;
const qemuBinPath = join(buildDirPath, "merged_qemu.bin");
const qemuBinExists = await pathExists(qemuBinPath);
if (qemuBinExists) {
await vscode.workspace.fs.delete(vscode.Uri.file(qemuBinPath));
}
if (!cancelToken.isCancellationRequested) {
updateIdfComponentsTree(workspace);
Logger.infoNotify("Build Successfully");
Expand Down
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export async function activate(context: vscode.ExtensionContext) {
} else {
UpdateCmakeLists.updateSrcsInCmakeLists(e.fsPath, srcOp.other);
}
await binTimestampEventFunc(e);
});
context.subscriptions.push(srcWatchOnChangeDisposable);

Expand All @@ -369,7 +370,7 @@ export async function activate(context: vscode.ExtensionContext) {
const qemuBinPath = path.join(buildDirPath, "merged_qemu.bin");
const qemuBinExists = await pathExists(qemuBinPath);
if (qemuBinExists) {
vscode.workspace.fs.delete(vscode.Uri.file(qemuBinPath));
await vscode.workspace.fs.delete(vscode.Uri.file(qemuBinPath));
}
};

Expand Down

0 comments on commit 5cad306

Please sign in to comment.