Skip to content

Commit 290edfc

Browse files
committed
Prevent workspace dependencies from failing if there's no bundle (#3655)
### Motivation The `workspace_dependencies` custom request may fail if there's no Gemfile. We need to handle that possibility. ### Implementation All we have to do is rescue the error raised by Bundler when there's no Gemfile.
1 parent 55d41b1 commit 290edfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_lsp/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def workspace_dependencies(message)
12241224
}
12251225
end
12261226
end
1227-
rescue Bundler::GemNotFound
1227+
rescue Bundler::GemNotFound, Bundler::GemfileNotFound
12281228
[]
12291229
end
12301230

0 commit comments

Comments
 (0)