Skip to content

Commit

Permalink
Reset the Runner when config-file changes are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
igray committed Nov 21, 2024
1 parent fd653aa commit d636663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/reek/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.register_additional_file_watchers(global_state, message_queue)
def workspace_did_change_watched_files(changes)
return unless changes.any? { |change| change[:uri].end_with?(".reek.yml") }

runner.init!
@runner = Runner.new
warn "Re-initialized Reek Ruby LSP addon v#{::RubyLsp::Reek::VERSION} due to .reek.yml file change"
end

Expand Down

0 comments on commit d636663

Please sign in to comment.