-
Notifications
You must be signed in to change notification settings - Fork 3.7k
refresh workspace dirs when folders are added #7692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refresh workspace dirs when folders are added #7692
Conversation
RomneyDa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mq200 this would be great.
- Can you implement this for jetbrains as well? or at least add a TODO comment to add to jetbrains?
- I think we could simplify the messaging a bit and remove the
refreshWorkspaceDirside method. You can set workspace dirs within the VS Code IDE directly on folders changed. - nitpick but I think the message could be named more clearly to mean workspace dirs rather than folders with a workspace dir. E.g. "workspaceDirsChanged"
his implementation
…kspace dirs changes listener
|
@RomneyDa okay, I'll add the changes for jetbrains |
…q200/fix-added-folders-not-triggering-reindex
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.21.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
When folders are moved/copied into a workpace in VSCode, they are not added to Continue's workspaceDirs (except for the 1st time folders are added, as an extension restart is triggered the 1st time).
The PR adds a listener to WorkspaceFoldersChangeEvent
From the VSCode API doc:
AI Code Review
@continue-general-reviewor@continue-detailed-reviewChecklist
Summary by cubic
Fixes missed reindexing when folders are added or removed in a VS Code workspace. The extension now refreshes workspace directories and updates the codebase index without a restart.