-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add multiple workspaces support #1725
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
add multiple workspaces support #1725
Conversation
🦋 Changeset detectedLatest commit: 9a36882 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Nice, this seems like a good idea! Any idea about the failing test? |
ee5972b to
05f0bf6
Compare
|
@mrubens It seems that the new methods were not mocked. I have now completed the mock methods, and these failing tests have been addressed |
- Add getWorkspacePath function to centralize workspace directory path retrieval - Use the new workspace directory retrieval logic in Cline, Mentions, ClineProvider, and WorkspaceTracker - Update WorkspaceFile on tab switch and prevent redundant updates by checking prevWorkSpacePath - Fix the bug that loads the contents of the previous tab when quickly switching tabs - Optimize getWorkspacePath return value for better reliability
673d0bb to
9a36882
Compare
mrubens
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.
Nice!
Context
Implementation
When using multiple workspaces, I am currently working with files from the second workspace, but the @context plugin only shows me the directories from the first workspace.
Screenshots
|
How to Test
Create a multi-workspace project, add files from several different projects into the tabs in VSCode, and observe the behavior of @add Folder and Add File.
Get in Touch
Important
Add support for multiple workspaces by centralizing workspace path retrieval and updating core components to use this logic.
getWorkspacePathfunction inpath.tsto centralize workspace path retrieval.Cline,Mentions,ClineProvider, andWorkspaceTrackerto usegetWorkspacePathfor workspace path management.WorkspaceTrackerby checkingprevWorkSpacePathon tab switch.getWorkspacePathinpath.test.tsto verify correct path retrieval.WorkspaceTracker.test.tsto ensure correct handling of file events and workspace updates.WorkspaceTracker.ts.This description was created by
for 4d66821160e66ecfa4d04fe0076baa3e3f81798a. It will automatically update as commits are pushed.