Skip to content

Commit 73a8246

Browse files
committed
option to suppress error messages
1 parent 22ca28f commit 73a8246

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/commands/compile.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ async function compile(docs: CurrentFile[], flags?: string): Promise<any> {
9090
.catch((error: Error) => {
9191
outputChannel.appendLine(error.message);
9292
outputChannel.show(true);
93-
vscode.window.showErrorMessage(error.message, "Show details").then(data => {
94-
outputChannel.show(true);
95-
});
93+
if (!config("suppressCompileErrorMessages")) {
94+
vscode.window.showErrorMessage(error.message, "Show details").then(data => {
95+
outputChannel.show(true);
96+
});
97+
}
9698
return [];
9799
})
98100
)

0 commit comments

Comments
 (0)