Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ GEM
rubocop (>= 1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sorbet (0.5.12194)
sorbet-static (= 0.5.12194)
sorbet-runtime (0.5.12194)
sorbet-static (0.5.12194-universal-darwin)
sorbet-static (0.5.12194-x86_64-linux)
sorbet-static-and-runtime (0.5.12194)
sorbet (= 0.5.12194)
sorbet-runtime (= 0.5.12194)
sorbet (0.5.12221)
sorbet-static (= 0.5.12221)
sorbet-runtime (0.5.12221)
sorbet-static (0.5.12221-universal-darwin)
sorbet-static (0.5.12221-x86_64-linux)
sorbet-static-and-runtime (0.5.12221)
sorbet (= 0.5.12221)
sorbet-runtime (= 0.5.12221)
spoom (1.7.4)
erubi (>= 1.10.0)
prism (>= 0.28.0)
Expand Down
1 change: 1 addition & 0 deletions lib/ruby_indexer/lib/ruby_indexer/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def signatures
end

class Method < Member
# @override
#: Array[Signature]
attr_reader :signatures

Expand Down
28 changes: 15 additions & 13 deletions lib/ruby_lsp/base_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,6 @@ def start
end
end

#: -> void
def run_shutdown
@incoming_queue.clear
@outgoing_queue.clear
@incoming_queue.close
@outgoing_queue.close
@cancelled_requests.clear

@worker.terminate
@outgoing_dispatcher.terminate
@store.clear
end

# This method is only intended to be used in tests! Pops the latest response that would be sent to the client
#: -> untyped
def pop_response
Expand All @@ -132,6 +119,21 @@ def process_message(message)
raise AbstractMethodInvokedError
end

#: -> void
def run_shutdown
@incoming_queue.clear
@outgoing_queue.clear
@incoming_queue.close
@outgoing_queue.close
@cancelled_requests.clear

@worker.terminate
@outgoing_dispatcher.terminate
@store.clear
end

private

# @abstract
#: -> void
def shutdown
Expand Down
Loading