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 23edfb1 commit f78c468Copy full SHA for f78c468
lib/ruby_lsp/ruby_lsp_rails/server.rb
@@ -6,6 +6,10 @@
6
# NOTE: We should avoid printing to stderr since it causes problems. We never read the standard error pipe from the
7
# client, so it will become full and eventually hang or crash. Instead, return a response with an `error` key.
8
9
+# Load routes if they haven't been loaded yet (see https://github.com/rails/rails/pull/51614).
10
+routes_reloader = Rails.application.routes_reloader
11
+routes_reloader.execute_unless_loaded if routes_reloader&.respond_to?(:execute_unless_loaded)
12
+
13
module RubyLsp
14
module Rails
15
class Server
0 commit comments