@@ -196,7 +196,7 @@ function Chat.new(args)
196196 end
197197 self .parser = parser
198198
199- self .References = require (" codecompanion.strategies.chat.references" ).new ({ chat = self })
199+ self .references = require (" codecompanion.strategies.chat.references" ).new ({ chat = self })
200200 self .watchers = require (" codecompanion.strategies.chat.watchers" ).new ()
201201 self .tools = require (" codecompanion.strategies.chat.tools" ).new ({ bufnr = self .bufnr , messages = self .messages })
202202 self .variables = require (" codecompanion.strategies.chat.variables" ).new ()
@@ -502,7 +502,7 @@ function Chat:add_tool(tool, tool_config)
502502 end
503503
504504 local id = " <tool>" .. tool .. " </tool>"
505- self .References :add ({
505+ self .references :add ({
506506 source = " tool" ,
507507 name = " tool" ,
508508 id = id ,
@@ -602,7 +602,7 @@ function Chat:submit(opts)
602602 if not opts .regenerate and not vim .tbl_isempty (message ) then
603603 self :add_message ({ role = config .constants .USER_ROLE , content = message .content })
604604 end
605- message = self .References :clear (self .messages [# self .messages ])
605+ message = self .references :clear (self .messages [# self .messages ])
606606
607607 self :apply_tools_and_variables (message )
608608 self :check_references ()
@@ -697,7 +697,7 @@ function Chat:done(output)
697697 local assistant_range = self .header_line
698698 self :set_range (- 2 )
699699 self .ui :display_tokens (self .parser , self .header_line )
700- self .References :render ()
700+ self .references :render ()
701701
702702 if self .status == CONSTANTS .STATUS_SUCCESS and self :has_tools () then
703703 self .tools :parse_buffer (self , assistant_range , self .header_line - 1 )
727727--- Reconcile the references table to the references in the chat buffer
728728--- @return nil
729729function Chat :check_references ()
730- local refs = self .References :get_from_chat ()
730+ local refs = self .references :get_from_chat ()
731731 if vim .tbl_isempty (refs ) and vim .tbl_isempty (self .refs ) then
732732 return
733733 end
0 commit comments