Skip to content

Show existing compiler warnings and errors on file open #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

mediremi
Copy link
Contributor

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
Contributor

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