I am researching the bfg code and what I understand is that bfg_retriever.ts is the core code that supports automatic completion. But when I was using all the features of the Cody plugin, I did not find bfg_retriever being used in the log output. Did I not configure anything? Or is my usage incorrect? Hope to receive a reply, thank you!
Hello huangPengL, sorry for the delay. Did this resolve?
No, I need your help to solve the problem above
Hello @huangPengL
If you looking for logs then have look for the CodyEngine
which is the core part for symbolic search and embedding mechanism in Cody. As far as I know this is triggered as LocalEmbeddingsController
.
I referred to the bfg-protocol.ts
file and tried to use bfg in the same way as using lsp, but it didn’t work. It displays the Starting main loop VERBOSE_DEBUG=false
Have a look into the vscode/src/completions/context/retrievers/bfg/bfg-retrievers.ts
file in the respective folder how bfg works in regards to the bfg protocol. It utilizes the Cody-Engine for fetching relevant symbols and context in general.