Skip to content

Show existing compiler warnings and errors on file open#1103

Merged
zth merged 2 commits intorescript-lang:masterfrom
mediremi:update-diagnostics-on-file-open
Jun 19, 2025
Merged

Show existing compiler warnings and errors on file open#1103
zth merged 2 commits intorescript-lang:masterfrom
mediremi:update-diagnostics-on-file-open

Conversation

@mediremi
Copy link
Copy Markdown
Member

Currently, opening a ReScript file in VS Code does not show existing compiler warnings and errors until a file change triggers onWorkspaceDidChangeWatchedFiles, which in turn calls sendUpdatedDiagnostics.

This fix calls sendUpdatedDiagnostics on file open, ensuring that users will see existing warnings & errors immediately.

@mediremi mediremi marked this pull request as ready for review June 19, 2025 16:39
@mediremi mediremi changed the title Show compiler warnings and errors on file open Show existing compiler warnings and errors on file open Jun 19, 2025
@zth zth self-requested a review June 19, 2025 16:54
@zth zth merged commit 74321fe into rescript-lang:master Jun 19, 2025
6 checks passed
@nojaf
Copy link
Copy Markdown
Member

nojaf commented Jun 19, 2025

Good catch, I think I've experienced this. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants