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

Add command to show LSP's internal state for diagnosing issues #3195

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Feb 13, 2025

Motivation

Add a command to trigger the new custom diagnose request, so that it's easy to see the information at a glance.

Implementation

It's the same implementation as show syntax tree, we use a custom resource to show a read-only document containing the relevant information.

Manual Tests

  1. Launch the extension on this branch
  2. On the second VS Code window, open the Ruby LSP code itself (you need the server changes to verify all pieces together)
  3. Invoke the new command
  4. Verify you see the internal state of the server

Copy link
Member Author

vinistock commented Feb 13, 2025


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Feb 13, 2025
@vinistock vinistock requested review from andyw8 and st0012 February 13, 2025 15:26
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes enhancement New feature or request labels Feb 13, 2025 — with Graphite App
@vinistock vinistock marked this pull request as ready for review February 13, 2025 15:28
@vinistock vinistock requested a review from a team as a code owner February 13, 2025 15:28
@vinistock vinistock force-pushed the 02-13-add_custom_command_to_return_lsp_internal_state branch from 139c44a to 2afdeb7 Compare February 13, 2025 15:29
@vinistock vinistock force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 651a9de to 449cb8e Compare February 13, 2025 15:29
@vinistock vinistock force-pushed the 02-13-add_custom_command_to_return_lsp_internal_state branch from 2afdeb7 to cf32d6a Compare February 13, 2025 15:46
@vinistock vinistock force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 449cb8e to 5f06094 Compare February 13, 2025 15:46
@vinistock vinistock force-pushed the 02-13-add_custom_command_to_return_lsp_internal_state branch from cf32d6a to 2fd31fd Compare February 13, 2025 15:56
@vinistock vinistock force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 5f06094 to 1eeb605 Compare February 13, 2025 15:56
@vinistock vinistock changed the base branch from 02-13-add_custom_command_to_return_lsp_internal_state to graphite-base/3195 February 13, 2025 17:56
@vinistock vinistock force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 1eeb605 to 00c70bc Compare February 13, 2025 18:23
@vinistock vinistock changed the base branch from graphite-base/3195 to main February 13, 2025 18:24
@vinistock vinistock force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 00c70bc to 7542c66 Compare February 13, 2025 18:24
Copy link

graphite-app bot commented Feb 14, 2025

Merge activity

  • Feb 14, 8:53 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 14, 9:22 AM EST: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Ruby 3.3 on ubuntu-latest').

### Motivation

Add a command to trigger the new custom diagnose request, so that it's easy to see the information at a glance.

### Implementation

It's the same implementation as show syntax tree, we use a custom resource to show a read-only document containing the relevant information.

### Manual Tests

1. Launch the extension on this branch
2. On the second VS Code window, open the Ruby LSP code itself (you need the server changes to verify all pieces together)
3. Invoke the new command
4. Verify you see the internal state of the server
@graphite-app graphite-app bot force-pushed the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch from 7542c66 to 2860c05 Compare February 14, 2025 14:10
@vinistock vinistock merged commit 3e9c3ed into main Feb 14, 2025
43 checks passed
@vinistock vinistock deleted the 02-13-add_command_to_show_lsp_s_internal_state_for_diagnosing_issues branch February 14, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants