Repository navigation
Simplify Server by moving bits of code toWorkspaceProjects - #9822
Merged
jtulach merged 1 commit intoNov 22, 2026
Merged
Conversation
jtulach
force-pushed
the
jtulach/RefactorToWorkspaceProjects
branch
from
November 22, 2026 09:13
392b175 to
c79b31f
Compare
2 tasks
Server by extracting some code toWorkspaceProjectsServer by moving bits of code toWorkspaceProjects
eppleton
approved these changes
Nov 22, 2026
eppleton
left a comment
Contributor
There was a problem hiding this comment.
I compared every line removed from Server.java with the new WorkspaceProjects.java (ignoring whitespace), and it is the 1:1 move described. The only differences are the expected ones: the logger, request processor and telemetry constants are now package-level on Server, the client is accessed through a supplier, and all four synchronized (this) blocks moved together with the fields they guard. Callers elsewhere in the module only use openedProjects() via LspServerState, which still delegates. Looks good to me.
Two small remarks, neither blocking:
LanguageServerImplhad its own logger (...protocol.Server$LanguageServerImpl), which is removed here, so all its messages, including the project-opening FINE/FINER logs, now go to...protocol.Server. Nothing in the repo depends on the old name, but anyone enabling this logging via-J-D...Server$LanguageServerImpl.level=FINER(e.g. from bug-report instructions) would silently stop seeing it.- In
WorkspaceProjects.javaaround line 373, the comment "// Wait for all priming builds, even those already pending, to finish:" ended up joined to the preceding});line.
This file contains hidden or 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
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.
DirectoryGroupup #9821 injava.lsp.serverI realized...Server.javafile a little bit too largeWorkspaceProjectsdedicated class