diff --git a/Gemfile b/Gemfile index 2d20bf6326..e55b79df41 100644 --- a/Gemfile +++ b/Gemfile @@ -12,5 +12,6 @@ gem "rubocop-shopify", "~> 2.6", require: false gem "rubocop-minitest", "~> 0.20.0", require: false gem "rubocop-rake", "~> 0.6.0", require: false gem "rubocop-sorbet", "~> 0.6", require: false +gem "sorbet-static-and-runtime" gem "tapioca", "~> 0.8", require: false gem "yard", "~> 0.9", require: false diff --git a/Gemfile.lock b/Gemfile.lock index d4e1a23f78..37c516ae20 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,7 +4,7 @@ PATH ruby-lsp (0.0.3) language_server-protocol rubocop (>= 1.0) - sorbet-static-and-runtime + sorbet-runtime syntax_tree (>= 2.3) GEM @@ -116,6 +116,7 @@ DEPENDENCIES rubocop-shopify (~> 2.6) rubocop-sorbet (~> 0.6) ruby-lsp! + sorbet-static-and-runtime tapioca (~> 0.8) yard (~> 0.9) diff --git a/exe/ruby-lsp b/exe/ruby-lsp index e070fe69ed..9662b1a461 100755 --- a/exe/ruby-lsp +++ b/exe/ruby-lsp @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # frozen_string_literal: true +require "sorbet-runtime" require "syntax_tree" require "ruby-lsp" require "ruby_lsp/cli" diff --git a/ruby-lsp.gemspec b/ruby-lsp.gemspec index f8412cb946..91d1e60821 100644 --- a/ruby-lsp.gemspec +++ b/ruby-lsp.gemspec @@ -21,6 +21,6 @@ Gem::Specification.new do |s| s.add_dependency("language_server-protocol") s.add_dependency("rubocop", ">= 1.0") - s.add_dependency("sorbet-static-and-runtime") + s.add_dependency("sorbet-runtime") s.add_dependency("syntax_tree", ">= 2.3") end