Repository navigation
feat: name the command of a workspace/executeCommand request in its LSP console traces - #2055
Merged
lagergren merged 1 commit intoNov 21, 2026
Conversation
…SP console traces The traces of a workspace/executeCommand request and of its response showed only the method, so seeing which command a language server was asked to execute needed the verbose level and a look at the params of the request. They now show the command after the method, as workspace/executeCommand [gopls.tidy], at every level: the params are ExecuteCommandParams for a request that LSP4IJ sends, and JSON for one that hasn't been read into its type. Without a command, the trace shows the method only, as before.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2055 +/- ##
==========================================
+ Coverage 49.49% 49.61% +0.12%
==========================================
Files 813 813
Lines 33350 33362 +12
Branches 5195 5200 +5
==========================================
+ Hits 16505 16553 +48
+ Misses 14272 14226 -46
- Partials 2573 2583 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
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.
Fixes #284.
The LSP console traced a
workspace/executeCommandrequest, and its response, with the method only:So seeing which command a language server was asked to execute needed the verbose level, and a look at the params of the request. Both traces now name the command after the method, at every level:
TracingMessageConsumerreads the command from the params of the request:ExecuteCommandParamsfor a request that LSP4IJ sends, a JSON object for one that hasn't been read into its type. It keeps the name with the request, so the trace of the response shows it too. A request without a command is traced with its method only, as before, and so is every other request.Not here: #19, the traces that the LSP console misses before its explorer exists, as at the start of the IDE.
LanguageServerExplorerLifecycleListenerqueues the trace of a message only once the language server has a node in the explorer, so a request sent before that isn't traced, and its response shows<unknown>and a latency of?.Test:
TracingMessageConsumerTesttraces aworkspace/executeCommandrequest that LSP4IJ sends, and its response, with themessageslevel and with theverboseone, and a received one with JSON params, and its response: each names the command. Without the change, these three tests fail. It also checks that a request without a command, and other requests, show their method only, and that a response without its request still shows<unknown>. It and the console, execute-command and trace tests pass (61 tests).