Vscode: Git: After cloning and no folder is open, add option to open the folder automatically.

Created on 24 Mar 2020  路  8Comments  路  Source: microsoft/vscode



v1.43.1
image
Add an option in preferences, that when this message appears and you don't have anything open, open the folder automatically.

feature-request git good first issue help wanted insiders-released

Most helpful comment

I like it. Let's just open, instead of adding an option.

All 8 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

I like it. Let's just open, instead of adding an option.

I like it. Let's just open, instead of adding an option.

If something is already open, opening a folder in the same window may close other stuff, that's probably why the notification exists in the first place and why I would recommend a 'default' option.

Note: I have never touched TypeScript, but since this seems simple enough, I might try my hand on this.

Hello, me and my friend are thinking about doing this issue for an assignment. Is there anything we should know in particular about this issue?

I would find any information on why the notification exists in the first place.

Because the cloned repo would've been opened by default, if there wasn't the 'open in new window option'.

There's also an option to move this question to the prompt after asking for what to clone and where to clone.
(the prompt being this thing)
image

Hello, I wanted to try my hand on this issue as my first contribution to this project.
So I have made a new setting named "Prompt to Open Cloned Repository" of type string and set the default value to 'showPrompt'. I have added four different settings: openNewWindow - always opens cloned repo in new window, openCurrentWindow - same but for current window, noFolderOpened - opens in current window only if there is no folder opened in current workspace, showPrompt - always shows prompt (default behaviour).
setting
I will add a pull request soon.

what is left in this issue?I would like to work

what is left in this issue?I would like to work

There's a PR already, nothing really atm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsccarl picture vsccarl  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

chrisdias picture chrisdias  路  3Comments

biij5698 picture biij5698  路  3Comments