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 d284b18 commit b477fbcCopy full SHA for b477fbc
1 file changed
src/task.ts
@@ -95,10 +95,12 @@ async function createBuildTask(isJXA = false): Promise<void> {
95
}
96
97
if (await fileExists(buildFile)) {
98
- window.showErrorMessage(
99
- 'This workspace already has a task file. If you want to overwrite it, delete it manually and try again.',
100
- );
101
- return;
+ const overwrite = 'Overwrite';
+ const result = await window.showWarningMessage('This workspace already has a task file.', overwrite, 'Cancel');
+
+ if (result !== overwrite) {
102
+ return;
103
+ }
104
105
106
try {
0 commit comments