Skip to content

Commit 07a4d96

Browse files
committed
Fix NullClient#send_notification crash
1 parent 12f8d0d commit 07a4d96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ def send_message(request, params = nil)
181181
# The server connection died
182182
end
183183

184-
alias_method :send_notification, :send_message
184+
sig { params(request: String, params: T.nilable(T::Hash[Symbol, T.untyped])).void }
185+
def send_notification(request, params = nil) = send_message(request, params)
185186

186187
sig { returns(T.nilable(T::Hash[Symbol, T.untyped])) }
187188
def read_response

0 commit comments

Comments
 (0)