Skip to content

Commit 09b4967

Browse files
author
Andy Waite
authored
Remove extend T::Sig calls (#574)
No longer needed with RBS
1 parent 0bf809b commit 09b4967

File tree

11 files changed

+0
-20
lines changed

11 files changed

+0
-20
lines changed

lib/ruby_lsp/ruby_lsp_rails/addon.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
module RubyLsp
2020
module Rails
2121
class Addon < ::RubyLsp::Addon
22-
extend T::Sig
23-
2422
RUN_MIGRATIONS_TITLE = "Run Migrations"
2523

2624
#: -> void

lib/ruby_lsp/ruby_lsp_rails/code_lens.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ module Rails
7272
# Note: Complex routing configurations may not be supported.
7373
#
7474
class CodeLens
75-
extend T::Sig
7675
include Requests::Support::Common
7776
include ActiveSupportTestCaseHelper
7877

lib/ruby_lsp/ruby_lsp_rails/completion.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
module RubyLsp
55
module Rails
66
class Completion
7-
extend T::Sig
87
include Requests::Support::Common
98

109
# @override

lib/ruby_lsp/ruby_lsp_rails/definition.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ module Rails
2828
# - If using `constraints`, the route can only be found if the constraints are met.
2929
# - Changes to routes won't be picked up until the server is restarted.
3030
class Definition
31-
extend T::Sig
3231
include Requests::Support::Common
3332

3433
#: (RunnerClient client, RubyLsp::ResponseBuilders::CollectionResponseBuilder[(Interface::Location | Interface::LocationLink)] response_builder, NodeContext node_context, RubyIndexer::Index index, Prism::Dispatcher dispatcher) -> void

lib/ruby_lsp/ruby_lsp_rails/document_symbol.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module Rails
99
# request allows users to navigate between associations, validations, callbacks and ActiveSupport test cases with
1010
# VS Code's "Go to Symbol" feature.
1111
class DocumentSymbol
12-
extend T::Sig
1312
include Requests::Support::Common
1413
include ActiveSupportTestCaseHelper
1514

lib/ruby_lsp/ruby_lsp_rails/hover.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module Rails
1515
# # ^ hovering here will show information about the User model
1616
# ```
1717
class Hover
18-
extend T::Sig
1918
include Requests::Support::Common
2019

2120
#: (RunnerClient client, ResponseBuilders::Hover response_builder, NodeContext node_context, GlobalState global_state, Prism::Dispatcher dispatcher) -> void

lib/ruby_lsp/ruby_lsp_rails/indexing_enhancement.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
module RubyLsp
55
module Rails
66
class IndexingEnhancement < RubyIndexer::Enhancement
7-
extend T::Sig
8-
97
# @override
108
#: (Prism::CallNode call_node) -> void
119
def on_call_node_enter(call_node)

lib/ruby_lsp/ruby_lsp_rails/runner_client.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ module RubyLsp
88
module Rails
99
class RunnerClient
1010
class << self
11-
extend T::Sig
12-
1311
#: (Thread::Queue outgoing_queue, RubyLsp::GlobalState global_state) -> RunnerClient
1412
def create_client(outgoing_queue, global_state)
1513
if File.exist?("bin/rails")
@@ -46,8 +44,6 @@ class InitializationError < StandardError; end
4644
class MessageError < StandardError; end
4745
class EmptyMessageError < MessageError; end
4846

49-
extend T::Sig
50-
5147
#: String
5248
attr_reader :rails_root
5349

@@ -368,8 +364,6 @@ def server_relevant_capabilities(global_state)
368364
end
369365

370366
class NullClient < RunnerClient
371-
extend T::Sig
372-
373367
#: -> void
374368
def initialize # rubocop:disable Lint/MissingSuper
375369
end

lib/ruby_lsp/ruby_lsp_rails/support/active_support_test_case_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
module RubyLsp
55
module Rails
66
module ActiveSupportTestCaseHelper
7-
extend T::Sig
8-
97
#: (Prism::CallNode node) -> String?
108
def extract_test_case_name(node)
119
message_value = node.message

lib/ruby_lsp/ruby_lsp_rails/support/location_builder.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ module Rails
66
module Support
77
class LocationBuilder
88
class << self
9-
extend T::Sig
10-
119
#: (String location_string) -> Interface::Location
1210
def line_location_from_s(location_string)
1311
*file_parts, line = location_string.split(":")

0 commit comments

Comments
 (0)