Skip to content

Conversation

jakebailey
Copy link
Member

Should make client issues like #1744 easier to debug.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds error handling to prevent LSP handlers from processing requests when the server hasn't been properly initialized. It addresses debugging issues like #1744 by returning proper error messages when clients attempt to use the language server before the initialization handshake is complete.

  • Adds initialization checks to both notification and request handlers
  • Returns ErrServerNotInitialized when session is nil and method is not an initialization method

@jakebailey jakebailey added this pull request to the merge queue Sep 23, 2025
Merged via the queue into main with commit 914791e Sep 23, 2025
22 checks passed
@jakebailey jakebailey deleted the no-init-error branch September 23, 2025 18:59
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