Skip to content

Commit 23f9cad

Browse files
author
Tyler Deemer
committed
Added warning message when compile fails because of the read-only status
1 parent cd70ac6 commit 23f9cad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/api/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ export class AtelierAPI {
197197
}
198198
}
199199
if (data.result.status && data.result.status !== "") {
200-
outputChannel.appendLine(data.result.status);
200+
const status: string = data.result.status;
201+
outputChannel.appendLine(status);
202+
if(status.endsWith("is marked as read only by source control hooks.")) {
203+
vscode.window.showWarningMessage(status, { modal: true });
204+
}
201205
throw new Error(data.result.status);
202206
}
203207
if (data.status.summary) {

0 commit comments

Comments
 (0)