Skip to content
Permalink
Browse files
Remove temporary files on debug instance termination
Address review comments

Closes #102
  • Loading branch information
michael-hoke authored and Shanedell committed May 13, 2022
1 parent 28324f4 commit ea58dd3c1135355baf5f4813a41bcd94131824f6
Showing 1 changed file with 5 additions and 0 deletions.
@@ -68,6 +68,11 @@ export async function activate(ctx: vscode.ExtensionContext) {
)
ctx.subscriptions.push(
vscode.debug.onDidTerminateDebugSession(async (s) => {
if (sid !== undefined) {
let path = tmp(sid)
fs.rmSync(`${path}`, { force: true })
fs.rmSync(`${path}.prev`, { force: true })
}
sid = undefined
await openInfosetFilePrompt()
})

0 comments on commit ea58dd3

Please sign in to comment.