Skip to content

Commit 715f97e

Browse files
committed
Point to ruby-lsp branch
1 parent 6a6835c commit 715f97e

File tree

4 files changed

+394
-310
lines changed

4 files changed

+394
-310
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do
2525
gem "tzinfo"
2626
gem "tzinfo-data"
2727
end
28+
29+
gem "ruby-lsp", github: "Shopify/ruby-lsp", branch: "andyw8/connect-rails-runner-stdin"

Gemfile.lock

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ GIT
66
rdoc (6.6.3.1)
77
psych (>= 4.0.0)
88

9+
GIT
10+
remote: https://github.com/Shopify/ruby-lsp.git
11+
revision: 4c5d60afc15a77b1e1dcfbf216819a21c2dbeabc
12+
branch: andyw8/connect-rails-runner-stdin
13+
specs:
14+
ruby-lsp (0.17.16)
15+
language_server-protocol (~> 3.17.0)
16+
prism (>= 0.29.0, < 0.31)
17+
rbs (>= 3, < 4)
18+
sorbet-runtime (>= 0.5.10782)
19+
920
PATH
1021
remote: .
1122
specs:
@@ -146,8 +157,6 @@ GEM
146157
nio4r (2.7.3)
147158
nokogiri (1.16.5-arm64-darwin)
148159
racc (~> 1.4)
149-
nokogiri (1.16.5-x64-mingw-ucrt)
150-
racc (~> 1.4)
151160
nokogiri (1.16.5-x86_64-darwin)
152161
racc (~> 1.4)
153162
nokogiri (1.16.5-x86_64-linux)
@@ -234,11 +243,6 @@ GEM
234243
rubocop (~> 1.51)
235244
rubocop-sorbet (0.8.3)
236245
rubocop (>= 0.90.0)
237-
ruby-lsp (0.17.12)
238-
language_server-protocol (~> 3.17.0)
239-
prism (>= 0.29.0, < 0.31)
240-
rbs (>= 3, < 4)
241-
sorbet-runtime (>= 0.5.10782)
242246
ruby-progressbar (1.13.0)
243247
ruby2_keywords (0.0.5)
244248
sorbet (0.5.11406)
@@ -255,7 +259,6 @@ GEM
255259
sorbet-static-and-runtime (>= 0.5.10187)
256260
thor (>= 0.19.2)
257261
sqlite3 (1.7.3-arm64-darwin)
258-
sqlite3 (1.7.3-x64-mingw-ucrt)
259262
sqlite3 (1.7.3-x86_64-darwin)
260263
sqlite3 (1.7.3-x86_64-linux)
261264
stringio (3.1.0)
@@ -273,8 +276,6 @@ GEM
273276
timeout (0.4.1)
274277
tzinfo (2.0.6)
275278
concurrent-ruby (~> 1.0)
276-
tzinfo-data (1.2024.1)
277-
tzinfo (>= 1.0.0)
278279
unicode-display_width (2.5.0)
279280
webmock (3.23.1)
280281
addressable (>= 2.8.0)
@@ -292,7 +293,6 @@ GEM
292293

293294
PLATFORMS
294295
arm64-darwin
295-
x64-mingw-ucrt
296296
x86_64-darwin
297297
x86_64-linux
298298

@@ -307,6 +307,7 @@ DEPENDENCIES
307307
rubocop-rake (~> 0.6.0)
308308
rubocop-shopify (~> 2.15)
309309
rubocop-sorbet (~> 0.8)
310+
ruby-lsp!
310311
ruby-lsp-rails!
311312
sorbet-static-and-runtime
312313
sqlite3 (< 2)

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def initialize(global_state)
8686
$stderr.puts("Finished booting Ruby LSP Rails server")
8787

8888
# TODO: need to update RBI
89-
T.unsafe(global_state).rails_runner_stdin = @stdin
89+
global_state.rails_runner_stdin = @stdin
9090

9191
unless ENV["RAILS_ENV"] == "test"
9292
at_exit do

0 commit comments

Comments
 (0)