Skip to content

Commit 74321fe

Browse files
authored
Show existing compiler warnings and errors on file open (#1103)
* Show compiler warnings and errors on file open * Update CHANGELOG
1 parent 412463c commit 74321fe

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
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://github.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://github.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://github.com/rescript-lang/rescript-vscode/pull/1086

server/src/server.ts

Lines changed: 1 addition & 0 deletions
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)