I have tried a few different things, but I assume something like this was supposed to work:
"projectManager.git.baseFolders": [
"~/Projects/"
],
or at least this:
"projectManager.git.baseFolders": [
"/Users/<username>/Projects/"
],
:+1:
Hi @codingmatty ,
Yes, it should work. It wil look for _git repos_ inside that folder, recursively. Just remember that in Mac/Linux, the folders are _case sensitive _.
@BonDoQ , could you help me again, and test this config in your Mac :smiley: ?
Same issue here.
I am facing a similar issue. When I refresh the projects its start looking but it stops and only shows a subset of the git projects I have.
Here are my settings
"projectManager.vscode.baseFolders": [
"/Users/.../Documents"
],
"projectManager.vscode.maxDepthRecursion": 10,
"projectManager.cacheProjectsBetweenSessions": true,
"projectManager.showProjectNameInStatusBar": true
So, it worked for me with this setting. Just like @alefragnani wrote (sorry for the miss understanding):
"projectManager.git.baseFolders": [
"/Users/user.name/Projects/"
]
Good to know @TalAmitOS 馃帀
What was the catch? Case-sensitive folders?
Actually nothing new. I just replace:
"projectManager.git.baseFolders": [
"~/Projects/"
]
With:
"projectManager.git.baseFolders": [
"/Users/user.name/Projects/"
]
And refresh the projects list.
@codingmatty @RobertDessin @oarrabi are your git projects right at the _base_ folder, or in any subfolder?
By the way, the _detection_ is fairly simple. It just looks for a folder called .git with a file config inside. It does not make any kind of _git repo validation/authentication_. Also, if you use the cacheProjectsBetweenSessions as true, you should run the Refresh command, if you update the baseFolders setting.
Let me know if you have any success
@alefragnani ok, cool. Actually with "projectManager.cacheProjectsBetweenSessions" : true it suddenly works. great. Thanks
I also had this problem, and only solved it by the suggestions above, setting "projectManager.cacheProjectsBetweenSessions": true and stating the full, absolute path (including your actual username, so for me it was "/Users/rob/Projects/").
It would be great if we could add this to the documentation for the plugin, or better yet add support for ~ or $home, as dictated by the documentation currently. Also mentioning the caching requirement would help other users.
Another small thing for me was, I simply wanted a way to quickly open folders 1 level deep in my ~/Projects directory. For me, the plugin is picking up git projects but not non-git directories. I guess it's a minor annoyance as I should probably be running git init anyway, but I do have a lot of throwaway projects I never intend to check into git.
Thanks for this fantastic plugin!
Hi @robsaunders ,
Yes, this settings xxx.baseFolders only works with _full path_, at least for now 馃槃 . The support for _variables_ will be addressed in #88 .
About the directories that are not recognized, well, the detection is made _checking_ for git repositories, which means that it contains .git directory with a config file inside. It don't run any git command (like init) to be sure. It is just a _lazy_ check. There is no setting available to _any kind of folder_ yet, and I don't know if this would be a good idea (thinking about the side effects). If you think this scenario is a _must have_, pleas open another issue and I could handle it with another setting.
I will close this issue now, since the use of _variables_ for xxx.baseFolders will be treated in #88.
Not work for me
"projectManager.git.baseFolders": [
'/Users/davidgarcia/Desktop/ionic'
]
Hi @pookdeveloper ,
Could you provide more details about what are,you experiencing?
Does it show the Refresh notification or not? is the Side Bar visible? Are you using using the correct _case_ for the path?
Hi @pookdeveloper ,
Could you provide more details about what are,you experiencing?
Does it show the
Refreshnotification or not? is the Side Bar visible? Are you using using the correct _case_ for the path?
Yes @alefragnani the notification is showing but when I refresh the panel, it doesn't show the new folders of git projects.
The path that u put is putting in the terminal "pwd" of my folder that contains the projects.
Video of the behaviour: https://share.vidyard.com/watch/pthLc1K7RWeecLqYJjuUaB?
Hi @pookdeveloper ,
Are all (5) folders Git repos? Also, is any of them, or the ionic folder itself, a _hard/soft link_ instead of regular folders?
Hi @pookdeveloper ,
Are all (5) folders Git repos? Also, is any of them, or the
ionicfolder itself, a _hard/soft link_ instead of regular folders?
@alefragnani all are regulars folders and github projects I clone the repo using the gitkrakren app
It should work just fine. It just checks for .git/config file (no repo check/ validation btw) and returns the folder. There are only two limitations:
You could check Toggle Developer Tools for errors, but today there is no debug/log to turn on.
You should wait for an update to add debug/log messages
@alefragnani the problem is simple quote in the routeXD
NOT WORKS:
"projectManager.git.baseFolders": [
'/Users/davidgarcia/Desktop/ionic'
],
WORKS:
"projectManager.git.baseFolders": [
"/Users/davidgarcia/Desktop/ionic"
],
@alefragnani I can use regex? for all folders in "/Users/davidgarcia/Desktop/*", and not use:
"/Users/davidgarcia/Desktop/ionic",
"/Users/davidgarcia/Desktop/loopback",....
Thanks
That's great to see it works. I really missed that simple/double quote typo.
About regex, not yet. It's being tracked in #309. Upvote there 馃憤.
Most helpful comment
Actually nothing new. I just replace:
With:
And refresh the projects list.