Skip to content

Commit 746a1d1

Browse files
committed
Fix possible escaped unhandled promise rejections with compile errors
1 parent ee0f318 commit 746a1d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- Leading newline when adding real-time inputs to empty saved input
2424
- Seed for generators in stress tester not utilizing full 64-bit integer range
2525
- Tooltip not updating when the attribute changes
26+
- Compilation errors being double logged resulting in unhandled promise rejections
2627

2728
### Removed
2829

src/extension/providers/JudgeViewProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export default class extends BaseViewProvider<typeof ProviderMessageSchema, Webv
206206
): Promise<boolean> {
207207
const compilePromise = compile(file, this._context);
208208
if (!compilePromise) {
209-
return false;
209+
return true;
210210
}
211211

212212
super._postMessage({

0 commit comments

Comments
 (0)