Skip to content

Commit

Permalink
Invoke (and appropriately name) the file watcher so the addon re-init…
Browse files Browse the repository at this point in the history
…ializes successfully
  • Loading branch information
searls committed Jun 23, 2024
1 parent 2ac669c commit c2e6870
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ruby_lsp/standard/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def activate(global_state, message_queue)
warn "Activating Standard Ruby LSP addon v#{::Standard::VERSION}"
@wraps_built_in_lsp_standardizer = WrapsBuiltinLspStandardizer.new
global_state.register_formatter("standard", @wraps_built_in_lsp_standardizer)
register_additional_file_watchers(global_state, message_queue)
warn "Initialized Standard Ruby LSP addon #{::Standard::VERSION}"
end

Expand All @@ -32,7 +33,7 @@ def register_additional_file_watchers(global_state, message_queue)
params: Interface::RegistrationParams.new(
registrations: [
Interface::Registration.new(
id: "workspace/didChangeWatchedFilesMyGem",
id: "workspace/didChangeWatchedFilesStandard",
method: "workspace/didChangeWatchedFiles",
register_options: Interface::DidChangeWatchedFilesRegistrationOptions.new(
watchers: [
Expand Down

0 comments on commit c2e6870

Please sign in to comment.