-
Notifications
You must be signed in to change notification settings - Fork 22
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
Store diagnostics in the database #689
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alcarney
force-pushed
the
diagnostics
branch
from
November 30, 2023 19:17
4861193
to
17de9aa
Compare
The `Esbonio` object, accessible via the `esbonio` field on the Sphinx application object provides a single entry point from which we can expose all our integrations with the parent language server. This should also make it easy for extensions to detect when they are running within `esbonio` and enable any additional integrations. As well as exposing the database, this object now also holds our logging handler.
alcarney
force-pushed
the
diagnostics
branch
from
December 12, 2023 23:53
17de9aa
to
066de3d
Compare
Rather than push diagnostics to the parent language server on each build result, the new `diagnostics` Sphinx extension saves them to the database instead.
Rather than look for diagnostics in the sphinx agent's build result we now read them from the agent's database, using the end of the build as a trigger. Once passed to the server, we call `sync_diagnostics()` to publish them to the client.
If the client supports the pull model of diagnostics introduced in LSP v3.17 the call to `sync_diagnostics()` is now a no-op
alcarney
force-pushed
the
diagnostics
branch
from
December 13, 2023 20:07
066de3d
to
ca22fea
Compare
alcarney
force-pushed
the
diagnostics
branch
from
December 22, 2023 18:21
1af26f8
to
f75f67f
Compare
For client's that support it, the language server is now able to report the diagnostics associated with the given text document
For client's that support it, the language server is now able to report the diagnostics reported for the workspace
`gather_results` combines the results returned from all registered language features into a single list. While no longer necessary for diagnostic support (it was used in a previous implementation attempt). The `gather_results` function will be used for future methods so we may as well add it now it's been written.
- Only run tests for a single builder. - Create a fresh client for each test case
alcarney
force-pushed
the
diagnostics
branch
from
December 22, 2023 19:21
f75f67f
to
3e70fd0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
textDocument/publishDiagnostics
as before.textDocument/diagnostic
andworkspace/diagnostic
methods.