continue
continue copied to clipboard
@files should be implemented like the rest of the built-in context providers
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: MacOS
- Continue: Latest (Pre-release)
- IDE: VS Code
Description
@files is not implemented like the rest of the built-in context providers
It should have an @file property that you add to the contextProviders list
There should also be a mention of it under the Context Provider docs
We should also rename @files to @file, since you are only adding one file at a time and 2) it should match the config property
Finally, we should show recently opened files (up to last 8 or fill in any additional files if less than 8 have been opened) (note: look in getSuggestion.ts for this)
To reproduce
- Open VS Code with an empty
contextProviderslist - See that
@filesalways shows up - See that it's not
@file - See that only recently opened files show up (instead of the full up to 8 possibilities)
- See that there is not mention of it in the docs
Log output
No response
I would like to contribute to this as my first issue. Would you please mind assigning it to me so I can look into it? @TyDunn
@Saumyanavani just assigned! Let me know if I can help you get going at all. I think there are 3 distinct directions here:
- Updating the context-providers docs page
- Not automatically injecting the "files" context provider here, but instead adding it to the default lists here, and preferably some kind of migration (like we used to do here, adding it to config.json if the user doesn't already have it then they don't lose the files context provider)
- ~~Show more possibilities in the dropdown beyond just open files (I believe this was recently solved)~~