lib/spoom/sorbet/lsp.rb in spoom-1.0.7 vs lib/spoom/sorbet/lsp.rb in spoom-1.0.8
- old
+ new
@@ -9,16 +9,12 @@
require_relative 'lsp/errors'
module Spoom
module LSP
class Client
- def initialize(sorbet_cmd, *sorbet_args, path: ".")
+ def initialize(sorbet_bin, *sorbet_args, path: ".")
@id = 0
- Bundler.with_clean_env do
- opts = {}
- opts[:chdir] = path
- @in, @out, @err, @status = Open3.popen3([sorbet_cmd, *sorbet_args].join(" "), opts)
- end
+ @in, @out, @err, @status = T.unsafe(Open3).popen3(sorbet_bin, *sorbet_args, chdir: path)
end
def next_id
@id += 1
end