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 status bar indicator for Hack LSP connection errors #156

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

PranayAgarwal
Copy link
Member

@PranayAgarwal PranayAgarwal commented Mar 4, 2024

The Hack language server often gets disconnected due to random errors, and there is no obvious indicator of this happening for the user, resulting in them wondering why their editor features aren't working.

While there can be many possible connection errors, this PR checks for a common one (hh_server crashing at any point after the LSP connection has been established, say due to a large rebase) and adds a prominent status bar indicator for it. The message also has an action to try and restart the server, which may fix the issue.

lsp_status.mov

Copy link

@kristjan kristjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, this'll help folks a lot

@PranayAgarwal PranayAgarwal merged commit 402820c into master Mar 5, 2024
3 checks passed
@PranayAgarwal PranayAgarwal deleted the lsp_status_indicator branch March 5, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants