Skip to content

Commit

Permalink
Pass Ruby interpreter path when replacing process by launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Dec 12, 2024
1 parent 8671a04 commit 0de2daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exe/ruby-lsp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if ENV["BUNDLE_GEMFILE"].nil?
# which gives us the opportunity to control which specs are activated and enter degraded mode if any gems failed to
# install rather than failing to boot the server completely
if options[:launcher]
command = +File.expand_path("ruby-lsp-launcher", __dir__)
command = +"#{Gem.ruby} #{File.expand_path("ruby-lsp-launcher", __dir__)}"
command << " --debug" if options[:debug]
exit exec(command)
end
Expand Down

0 comments on commit 0de2daa

Please sign in to comment.