Skip to content
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

refactor(langauge-server): Improve LSP diagnostic integration #230

Merged
merged 8 commits into from
Aug 16, 2024

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Aug 16, 2024

  • Removed the provideSemanticDiagnostics hook, LanguageServicePlugin should prompt that provideDiagnostics needs to be recalculated when other files change through capabilities.diagnosticProvider.interFileDependencies = true.

  • The pullModelDiagnostics option has been removed. Volar will maintain its own logic to determine whether to enable pull model: when the language client supports pull diagnostics and no LanguageServicePlugin enables interFileDependencies, pull diagnostics will be used. Otherwise use push diagnostics. The reason is that according to the summary in Add options to only sync visible documents to the server microsoft/vscode-languageserver-node#848 (comment), the pull model is currently not reliable enough.

@johnsoncodehk johnsoncodehk merged commit 5a17cea into master Aug 16, 2024
6 checks passed
@johnsoncodehk johnsoncodehk deleted the interFileDependencies branch August 16, 2024 10:29
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.

1 participant