Skip to content

Commit c2b690d

Browse files
committed
wip
1 parent 2b25b2d commit c2b690d

File tree

5 files changed

+7358
-6516
lines changed

5 files changed

+7358
-6516
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do
2323
gem "tzinfo"
2424
gem "tzinfo-data"
2525
end
26+
27+
gem "ruby-lsp", github: "Shopify/ruby-lsp", branch: "main"

Gemfile.lock

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
GIT
2+
remote: https://github.com/Shopify/ruby-lsp.git
3+
revision: 779679c26ba3830d29adbcec70476494fc194527
4+
branch: main
5+
specs:
6+
ruby-lsp (0.23.12)
7+
language_server-protocol (~> 3.17.0)
8+
prism (>= 1.2, < 2.0)
9+
rbs (>= 3, < 4)
10+
sorbet-runtime (>= 0.5.10782)
11+
112
PATH
213
remote: .
314
specs:
@@ -222,11 +233,6 @@ GEM
222233
rubocop (~> 1.51)
223234
rubocop-sorbet (0.8.9)
224235
rubocop (>= 1)
225-
ruby-lsp (0.23.6)
226-
language_server-protocol (~> 3.17.0)
227-
prism (>= 1.2, < 2.0)
228-
rbs (>= 3, < 4)
229-
sorbet-runtime (>= 0.5.10782)
230236
ruby-progressbar (1.13.0)
231237
ruby2_keywords (0.0.5)
232238
securerandom (0.3.1)
@@ -305,6 +311,7 @@ DEPENDENCIES
305311
rubocop-rake (~> 0.6.0)
306312
rubocop-shopify (~> 2.15)
307313
rubocop-sorbet (~> 0.8)
314+
ruby-lsp!
308315
ruby-lsp-rails!
309316
sorbet-static-and-runtime
310317
sqlite3

lib/ruby_lsp/ruby_lsp_rails/addon.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ def create_completion_listener(response_builder, node_context, dispatcher, uri)
121121
Completion.new(@rails_runner_client, response_builder, node_context, dispatcher, uri)
122122
end
123123

124+
# @overridable
125+
#: (ResponseBuilders::TestCollection response_builder, Prism::Dispatcher dispatcher, URI::Generic uri) -> void
126+
def create_discover_tests_listener
127+
# TODO
128+
end
129+
124130
#: (Array[{uri: String, type: Integer}] changes) -> void
125131
def workspace_did_change_watched_files(changes)
126132
if changes.any? { |c| c[:uri].end_with?("db/schema.rb") || c[:uri].end_with?("structure.sql") }

0 commit comments

Comments
 (0)