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 b5f4791 commit d227981Copy full SHA for d227981
lib/ruby_lsp/ruby_lsp_rails/server.rb
@@ -167,6 +167,7 @@ def resolve_route_info(requirements)
167
if ActionDispatch::Routing::Mapper.respond_to?(:route_source_locations) &&
168
ActionDispatch::Routing::Mapper.route_source_locations
169
def route_location(name)
170
+ ::Rails.application.reload_routes_unless_loaded
171
match_data = name.match(/^(.+)(_path|_url)$/)
172
return { result: nil } unless match_data
173
0 commit comments