Skip to content

Commit

Permalink
Update addons docs for global state
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed May 23, 2024
1 parent b6f5f4f commit a37b113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ADDONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module RubyLsp
module MyGem
class Addon < ::RubyLsp::Addon
# Performs any activation that needs to happen once when the language server is booted
def activate(message_queue)
def activate(global_state, message_queue)
end

# Performs any cleanup when shutting down the server, like terminating a subprocess
Expand Down Expand Up @@ -131,7 +131,7 @@ following listener implementation.
module RubyLsp
module MyGem
class Addon < ::RubyLsp::Addon
def activate(message_queue)
def activate(global_state, message_queue)
@message_queue = message_queue
@config = SomeConfiguration.new
end
Expand Down Expand Up @@ -249,7 +249,7 @@ interested in using it.
module RubyLsp
module MyGem
class Addon < ::RubyLsp::Addon
def activate(message_queue)
def activate(global_state, message_queue)
@message_queue = message_queue
end

Expand Down

0 comments on commit a37b113

Please sign in to comment.