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

Fix LSP document synchronization #544

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

Fix LSP document synchronization #544

wants to merge 26 commits into from

Conversation

rodinaarssen
Copy link
Member

@rodinaarssen rodinaarssen commented Dec 16, 2024

The LSP server is responsible for the content of files that are open in the editor. This was not (fully/correctly) implemented in rascal-lsp (#355). During resolution of a source location, the fallback resolver now rewrites source locations of open files, and file operations on such a location are handled by the new LSPOpenFileResolver class. This works for both Rascal and DSL files.

This depends on usethesource/rascal#2101 to function correctly.

Copy link
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.

Looks mostly good, I have some small concerns that I would like your input on.

Copy link
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.

Looks good, but I'm missing at least 1 test, just to help us not break this in the future.

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.

2 participants