File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#### :bug: Bug fix
2121

22+
- Fix: show existing compiler errors and warnings on file open. https://.com/rescript-lang/rescript-vscode/pull/1103
23+
2224
- Fix: bug where we incorrectly showed a warning notification about something going wrong with incremental type checking, when in fact the compiler was reporting module-related type errors https://.com/rescript-lang/rescript-vscode/pull/1090
2325

2426
- Fix: bug where we incorrectly showed a warning notification about something going wrong with incremental type checking, when in fact the compiler was reporting multiple definitions of the same type or module name https://.com/rescript-lang/rescript-vscode/pull/1086
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ async function onMessage(msg: p.Message) {
10881088
} else if (msg.method === DidOpenTextDocumentNotification.method) {
10891089
let params = msg.params as p.DidOpenTextDocumentParams;
10901090
await openedFile(params.textDocument.uri, params.textDocument.text);
1091+
await sendUpdatedDiagnostics();
10911092
await updateDiagnosticSyntax(params.textDocument.uri, params.textDocument.text);
10921093
} else if (msg.method === DidChangeTextDocumentNotification.method) {
10931094
let params = msg.params as p.DidChangeTextDocumentParams;

0 commit comments

Comments
 (0)