lib/ruby_lsp/tapioca/addon.rb in tapioca-0.16.7 vs lib/ruby_lsp/tapioca/addon.rb in tapioca-0.16.8
- old
+ new
@@ -43,9 +43,14 @@
# thread
addon = T.cast(::RubyLsp::Addon.get("Ruby LSP Rails", ">= 0.3.17", "< 0.4"), ::RubyLsp::Rails::Addon)
@rails_runner_client = addon.rails_runner_client
@outgoing_queue << Notification.window_log_message("Activating Tapioca add-on v#{version}")
@rails_runner_client.register_server_addon(File.expand_path("server_addon.rb", __dir__))
+ @rails_runner_client.delegate_notification(
+ server_addon_name: "Tapioca",
+ request_name: "load_compilers_and_extensions",
+ workspace_path: @global_state.workspace_path,
+ )
rescue IncompatibleApiError
# The requested version for the Rails add-on no longer matches. We need to upgrade and fix the breaking
# changes
@outgoing_queue << Notification.window_log_message(
"IncompatibleApiError: Cannot activate Tapioca LSP add-on",