Skip to content

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

Merged
johnsoncodehk merged 8 commits intomasterfrom
interFileDependencies
Aug 16, 2024
Merged

refactor(langauge-server): Improve LSP diagnostic integration#230
johnsoncodehk merged 8 commits intomasterfrom
interFileDependencies

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
@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