We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48b2a6 commit c437d41Copy full SHA for c437d41
lib/ruby_lsp/ruby_lsp_rails/server.rb
@@ -20,6 +20,10 @@ def initialize
20
end
21
22
def start
23
+ # Load routes if they haven't been loaded yet (see https://github.com/rails/rails/pull/51614).
24
+ routes_reloader = ::Rails.application.routes_reloader
25
+ routes_reloader.execute_unless_loaded if routes_reloader&.respond_to?(:execute_unless_loaded)
26
+
27
initialize_result = { result: { message: "ok" } }.to_json
28
$stdout.write("Content-Length: #{initialize_result.length}\r\n\r\n#{initialize_result}")
29
0 commit comments