-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
SCM: initialize git repo is weird #35031
Comments
👍
There's always the global command. The action is there just to catch your eye. |
To keep the number of issues in our inbox on a manageable level, we're closing issues that have been on the backlog for a long time but haven't gained traction: We look at the number of votes the issue has received and the number of duplicates issues filed. Thanks for your understanding. Happy coding! |
Git init now asks for a folder name to initialise in. Also, you can still initialise after that action item is gone, since there is the global command. What else do we want here? |
@joaomoreno I think #35031 (comment) summarises my expected behaviour and I think you acknowledged that too. |
Have you tried the action lately? |
@joaomoreno yes: Empty Workspace Fix: Do not enable this action in empty workspace. It makes no sense unless you would also ask the user to actually open that folder in VS Code. Folder Workspace Fix: pick the opened folder to initialise and do not ask. Multi Root Workspace Fix: Show a picker of workspace folders that are part of my multi root workspace to select from. If the workspace is empty (= 0 root folders) the action should not be enabled at all. |
On it. For the first, since we don't have contributable action enablement, I'll just have to hide it. Do you know of a context key I can listen to? |
@joaomoreno as far as I know we currently have no context key that reflects the state of the workspace, but it would probably make sense to have it. |
@bpasero What's the best place to put that? |
@joaomoreno maybe in the workspace service itself. @sandy081 what do you think? could be a layering problem though... |
I think, having a context for workspace makes sense. |
@sandy081 Let's do it together tomorrow. |
@sandy081 @joaomoreno there is a couple of context keys in |
@bpasero Thanks! |
I'm leaving this picker. I've seen way too many users initializing their repo in their home folder just because they click that command. The dialog is there as a confirmation step. Everything else is fixed. |
Testing: #34963
I am not sure I get this action:
I am being asked where to initialize the repository, but what if that path is outside of the opened workspace? Even worse, when I have no workspace open, I am still being asked, but then shouldn't we open that folder of the repo?
Imho this action should always init the git repo in one of the workspace folders and be disabled if no folder is opened. If multiple folders are opened, the user should be asked.
Also, this action is hidden as soon as any repository is shown but I might still want to "git init" in one of my workspace folders.
The text was updated successfully, but these errors were encountered: