You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClosesShopify/ruby-lsp#2886
We cannot use blanket rescue statements for the entire server because the behaviour for handling errors is different between requests and notifications.
For requests, we want to return `error: message` instead of the typicaly `result: something`. And for notifications, we cannot return anything, we can only log that an error occurred.
The approach that I took here is to create handlers that we can use both ourselves and in server add-ons, that provide appropriate error handling for requests or notifications.
I also created convenience methods for returning responses or errors.
Description
Ruby LSP Information
VS Code Version
1.95.3
Ruby LSP Extension Version
0.8.13
Ruby LSP Server Version
0.21.3
Ruby LSP Addons
Ruby Version
3.3.6
Ruby Version Manager
rbenv
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
RubyLsp::Rails::RunnerClient::EmptyMessageError
Code snippet or error message
Running on:
The text was updated successfully, but these errors were encountered: