You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c787b88
Browse filesBrowse the repository at this point in the historyBrowse files
Recover the LSP analysis context after a workspace build
Why:
Projects opened before their first build lack generated metadata.
Recover on compiler-log events without requiring an editor restart.
Context modified (compiler-log creation and change notifications):
Before (text):
Refresh diagnostics using the existing analysis and package context.
After (text):
Discover fresh analysis tables and package configuration.
Replace the context if the workspace package is available.
Otherwise retain the previous context without repeated error messages.
Preserve open buffers, settings and diagnostics, then refresh diagnostics.
Diagnostic modified (initial package discovery failure):
Before (text):
Try building the project then restart the server
After (text):
Try building the project. The server will retry when a compiler log
changes.
Add snapshot tests for Created and Changed events, early retries,
compiled-file lookup and preservation of unsaved buffers. Document the
automatic recovery behavior.
Validation:
dune build and eight recovery/diagnostic tests pass. The full LSP
suite still has snapshot differences in hover_jsx.ml and code_action.ml.
Signed-off-by: Pedro Castro <aspeddro@gmail.com>
0 commit comments