Create File tool should add to @files context
Validations
- [x] I believe this is a way to improve. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that requests the same enhancement
Problem
When the create file tool creates a new file it should be immediately indexed and added to the @files context so it can be referenced in subsequent prompts.
Solution
I’d like some help developing a solution. I’m aware of where the create file tool is called but I am not quite sure how to best trigger indexing of a single file and how to reload the files context or add the single file to the list.
I believe this should be happening automatically, so it might be a broader bug of new files not being indexed automatically. Although now that I'm typing this out, I think this has been a known bug for quite a long time. E.g. if you just create a file manually in the IDE, it won't get picked up by @files until you reload the window.
If we were to resolve this I think I'd like to fix the root cause rather than attempting a bandaid solution specifically for the create file tool. My hunch is this logic lives in CodebaseIndexer.