-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show document with server debug info (#694)
## Summary This PR is inspired by `rust-analyzer/status` request to show the debug information in a separate window. Reference: https://github.com/rust-lang/rust-analyzer/blob/e865b249e63a9c73e4741b32fd1c977a98d3c556/editors/code/src/commands.ts#L37-L71 It has been adopted to fit out needs: * The language client could be `undefined` * When not using the native server * Avoid showing the document if it's empty * Return an empty string for older Ruff version which doesn't return the information ## Test Plan https://github.com/user-attachments/assets/c104e211-631c-43a9-b289-394c7207a92e
- Loading branch information
1 parent
b4e0698
commit 01f76c1
Showing
2 changed files
with
100 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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