Skip to content
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

[FEATURE] - Option for multiple Projects Location Folder #712

Open
cheesyMan opened this issue Nov 12, 2023 · 4 comments
Open

[FEATURE] - Option for multiple Projects Location Folder #712

cheesyMan opened this issue Nov 12, 2023 · 4 comments

Comments

@cheesyMan
Copy link

cheesyMan commented Nov 12, 2023

Hi,
would it be possible to support a multiple Projects location folder option (projectManager.projectsLocation)?

Something like this:
Snipaste_2023-11-12_11-47-29

I happen to work back and forth on Mac and Windows machines and I have my VSCode settings and preferences syncronized.

Currently, this option accepts only a string for a single folder so, when I change this option - let's say in Windows - it gets syncronized on the Mac as well.

Then, when I open VSCode on the Mac I cannot find my projects anymore.

So, I have to change the option on the Mac, but then it gets syncronized with the Window instance of VSCode and I have the same problem again when I go back to Windows.

Alberto

@cheesyMan cheesyMan changed the title [FEATURE] - Multiple [FEATURE] - Option for multiple Projects Location Folder Nov 12, 2023
@alefragnani
Copy link
Owner

Hi @cheesyMan ,

I wonder if instead of the Favorite Projects, you could use the _auto-detect _feature for Git, VS Code, regular repos. With it, you could add all folders, from all machines, and the extension would detect those that exists on each machine.

Hope this helps

@cheesyMan
Copy link
Author

cheesyMan commented Nov 13, 2023

Hi @alefragnani, thanks for your suggestion.

But I'd say that - although it's an alternative - it lacks some very useful features of the Favorite Projects option.

Using the Git base folders - afaik - tags cannot be added, and so projects cannot be filtered.

@alefragnani
Copy link
Owner

Hi @cheesyMan ,

Looking closer to this multiple location approach for the projectManager.projectsLocation, I guess we should have a few issues. I mean, how would be possible to determine in which of the files should new projects be saved? Would the extension check for duplicates?

Instead, maybe an alternative would be to support storing the projects directly in the settings. Doing so, you would have a centralized location for all the projects, the list of projects would be in sync in every machine you use, even remotes. Sure, only the found projects would be available on each machine, but the list itself, would still exists in one place.

I wonder if doing so would solve #525 as well. I guess it would, at least for users that has a small set of projects, or for those that doesn't care with the length of the settings file.

TBH, I was against this approach in the past, but neither Settings Sync nor Remotes were available back then. The time has changed...

What do you think?

@cheesyMan
Copy link
Author

Hi @alefragnani,
sorry for the late reply.

As to the "saving" issue, one solution could be to ask the user in which of the possible projects.json files (if the user has set more than 1 alternative folder) he wants to save the project? 🤔
I honestly don't know what kind of technical difficulties this approach could show on the programmer's side (yours 😄).

As to the settings solution, it has the advantage of being synced across every machine, but on some machines it would show projects that actually don't live on that machine.

Regarding the settings file size, I personally don't see this as a problem (at least not for me).
I don't know if an excessively huge setting file can lead to performance issues on VSCode (?) but if it's the case, a very big projects.json file wouldn't have this problem as well?

Coming to the more practical side of the problem, at the moment my approach is to have turned off Setting Sync for the projectManager.projectsLocation setting, so I have a different folder set on each machine and each machine searches projects on its own folder.
Obviously I need to add a new project to each machine if I plan have it available on all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants