⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
Fixes problem that files aren't currently being reindexed on save/delete, just throwing an error, and there wasn't an efficient way to reindex them
I did a PR https://github.com/continuedev/continue/pull/2717 a couple weeks back to handle file saves and deletions
Apparently I didn't test it well enough because it keeps throwing errors that it's trying to index a directory
This maxes sense, because the current index/forceReIndex only supports directories
The problem with passing directories (e.g. get directory from file name) is that for a specific file you must pass the directory containing that file, which means the entire directory is walked.
E.g. reindexing a file at the root would cause the entire codebase to reindex
Thus, a new index/forceReIndexFiles message and indexing function were created
Description
Fixes problem that files aren't currently being reindexed on save/delete, just throwing an error, and there wasn't an efficient way to reindex them
I did a PR https://github.com/continuedev/continue/pull/2717 a couple weeks back to handle file saves and deletions Apparently I didn't test it well enough because it keeps throwing errors that it's trying to index a directory
This maxes sense, because the current
index/forceReIndex
only supports directoriesThe problem with passing directories (e.g. get directory from file name) is that for a specific file you must pass the directory containing that file, which means the entire directory is walked. E.g. reindexing a file at the root would cause the entire codebase to reindex
Thus, a new
index/forceReIndexFiles
message and indexing function were createdFunctionality can be seen here https://www.loom.com/share/38876683023346239ed3d633857f3ebb