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.
This pull request significantly improves handling of multiple sources in the language server and adds workspace support.
Emitting diagnostics have been reworked, so that it should be less likely to get stuck in a state where diagnostics is never removed.
Workspace support has also been added in the language server. A workspace is triggered if a
Rune.toml
file is found at the root of the workspace. The sources associated with a workspace are always collected and processed by the language server.On top of this, any sources you open up will be handled as normal entrypoints unless they are part of a workspace.
This means we can finally deal with non-trivial project topologies and most improtant modules. With the caveat that these must have an associated
Rune.toml
file which points out the entrypoint.Workspace configuration also comes with its own diagnostics:
Hovering over the
rune-languageserver
bottom left option reveals a few controls:Stopping the server prevents it from running at all (during this session) in case there are any issues.