We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 530eb49 commit 5ec9972Copy full SHA for 5ec9972
packages/cursorless-engine/src/testCaseRecorder/TestCaseRecorder.ts
@@ -368,10 +368,20 @@ export class TestCaseRecorder {
368
"testCaseSaved",
369
"Cursorless test case saved.",
370
"View",
371
+ "Delete",
372
).then(async (action) => {
373
if (action === "View") {
374
await ide().openTextDocument(outPath);
375
}
376
+ if (action === "Delete") {
377
+ await fs.unlink(outPath, (err) => {
378
+ if (err) {
379
+ console.log("failed to delete ${outPath}: ${err}");
380
+ } else {
381
+ console.log("deleted ${outPath}");
382
+ }
383
+ });
384
385
});
386
387
0 commit comments