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

LSP: Prevent Document instance to be garbage collected between errors and hints computation. #7714

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dbalek
Copy link
Contributor

@dbalek dbalek commented Aug 30, 2024

Diagnostic reported via LSP are merged from the errors and hints computed separately. As the both partial sets of diagnostic are stored as a properties of the corresponding Document it is necessary ensure that both computations use the same Document instance. This change prevents Document instances to be garbage collected between errors and hints computations.

@dbalek dbalek added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests labels Aug 30, 2024
@dbalek dbalek added this to the NB24 milestone Aug 30, 2024
@dbalek dbalek self-assigned this Aug 30, 2024
@dbalek dbalek merged commit a0a9c28 into apache:master Sep 2, 2024
32 checks passed
@dbalek dbalek deleted the dbalek/lsp-diags-computation-fix branch September 2, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants