Vscode: [git] keep "create a new branch" option always

Created on 15 Sep 2018  路  6Comments  路  Source: microsoft/vscode

Problem
The time you search for the branch and not find any, there are no other options to proceed.
screen shot 2018-09-15 at 11 06 09

I as a developer would need to delete the search and then click on "create a new branch".

Solution
Keep "create a new branch" option always.
screen shot 2018-09-15 at 11 22 56

feature-request git verification-needed verified

Most helpful comment

@oneslash Dang, just noticed that you already submitted a PR to address this. Closed my PR, feel free to grab the integration test I added if you want

All 6 comments

@chrmarti Is this supported from an extension? Eg: keep an option always visible.

@oneslash Dang, just noticed that you already submitted a PR to address this. Closed my PR, feel free to grab the integration test I added if you want

@guywald1, since my PR is merged already, feel free to create a PR with tests :)

I added a PR to add tests and also fix a small bug (when explicitly settings items on a QuickPick the field was not properly propagated).

Additional thoughts I had (should open another issue for discussion?):

  • In my opinion, items that should always be shown shouldn't display search highlights. The highlights are possibly redundant and IMO it would look more elegant without

  • I feel like after accepting the Create new branch option, the input text should be preserved. Would a PR to address this be accepted?
    Also, possibly should this behavior be exposed for user control? (i.e. similarly to a shouldAlwaysShow field, a preserveInput field.)

I feel like after accepting the Create new branch option, the input text should be preserved. Would a PR to address this be accepted?

:+1:

Also, possibly should this behavior be exposed for user control?

Nah, sounds like a very good default value.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukehoban picture lukehoban  路  3Comments

v-pavanp picture v-pavanp  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

trstringer picture trstringer  路  3Comments