Skip to content

Factor out text document management#1070

Merged
toinehartman merged 15 commits intomainfrom
fix/document-state-management
May 1, 2026
Merged

Factor out text document management#1070
toinehartman merged 15 commits intomainfrom
fix/document-state-management

Conversation

@toinehartman
Copy link
Copy Markdown
Member

@toinehartman toinehartman commented Apr 29, 2026

Factor out management of open text document contents, reducing the amount of shared code between Rascal and language-parametric LSP implementations. This work also server as preparation for #1010, which will need the same document management on yet another class.

@toinehartman toinehartman self-assigned this Apr 29, 2026
@toinehartman toinehartman added the enhancement New feature or request label Apr 29, 2026
@toinehartman toinehartman marked this pull request as ready for review April 29, 2026 13:39
Copy link
Copy Markdown
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is good to factor this out.

I think doing this you've also discovered slight differences between the 2 classes. They are most likely the indication of bugs. Let's smooth that out.

Comment thread rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/TextDocumentStateManager.java Outdated
Comment thread rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/TextDocumentStateManager.java Outdated
Copy link
Copy Markdown
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, the tests fail, so maybe there is something there?

@sonarqubecloud
Copy link
Copy Markdown

@toinehartman toinehartman merged commit 1d62e3e into main May 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants