Commit graph

2249 commits

Author SHA1 Message Date
Ladislau Szomoru 9b8f1cb437
Git - only add default branch name if supported (#185557) 2023-06-19 12:42:30 +02:00
Ladislau Szomoru b51aabb6dc
Git - fix welcome view regression (#185233) 2023-06-15 16:57:31 +02:00
Ladislau Szomoru 3447686499
Git - use close event when detecting git version (#184998) 2023-06-13 11:25:00 +02:00
Ladislau Szomoru e82cbf80ba
Git - only add --find-renames if the value is not the default one (#184992) 2023-06-13 09:56:29 +02:00
Ladislau Szomoru 17c88bf045
Git - extract code into UnsafeRepositoryManager (#184896) 2023-06-12 12:29:47 +02:00
Ladislau Szomoru b0b1af125c
Git - extract code into ParentRepositoriesManager (#184891) 2023-06-12 11:47:30 +02:00
Ladislau Szomoru 323e6df4e7
Git - improve repositories quick pick (#184794) 2023-06-12 10:05:02 +02:00
Ladislau Szomoru 12533c5490
Git - extract close repository management into its own class (#184752) 2023-06-09 14:54:38 -07:00
Ladislau Szomoru 9979f9cc3c
Git - close repository improvements (#184708)
* Initial implementation

* Move ObservableSet into a separate file

* Add quick pick for reopening closed repositories

* Fix issue with initializing the context key

* Add welcome views
2023-06-09 13:19:57 +02:00
Ladislau Szomoru 40474d7f45
Revert "Git - Close Repository command should be disabled when there is only one repository opened (#184637)" (#184685)
This reverts commit 2cccaaee8a.
2023-06-09 10:26:47 +02:00
Ladislau Szomoru 2cccaaee8a
Git - Close Repository command should be disabled when there is only one repository opened (#184637) 2023-06-08 15:19:10 -07:00
Daniel Imms 911d1c0eab
Merge pull request #184413 from microsoft/tyriar/184331
Adopt EnvironmentVariableCollection in git ext
2023-06-08 08:52:35 -07:00
Ladislau Szomoru fbdddfde42
Git - upgrade which dependency (#184607) 2023-06-08 17:28:14 +02:00
Daniel Imms e139fdb1c6
Localize git features string 2023-06-08 05:11:45 -07:00
Daniel Imms fab99a2c40
Explain features the git extension enables 2023-06-07 11:57:04 -07:00
Ladislau Szomoru 909e55fbdc
Git - add tracing messages to help with troubleshooting (#184506) 2023-06-07 10:02:17 -07:00
Ladislau Szomoru bb6d7d67ff
Git - handle branch name with incorrect casing (#184502) 2023-06-07 15:25:09 +02:00
Daniel Imms 1c5442ac03
Adopt EnvironmentVariableCollection in git ext
Fixes #184331
2023-06-06 05:48:02 -07:00
Ladislau Szomoru ad34af09f9
Git - fix close diff editor regression (#184410) 2023-06-06 14:35:15 +02:00
Ladislau Szomoru 8602b29876
Git - fix #183941 (#183944) 2023-05-31 15:48:04 +02:00
Ladislau Szomoru da47f08b53
Git - run git status if similarityThreshold changes (#183762) 2023-05-30 10:49:38 +02:00
Ladislau Szomoru e7e97f8ea8
Git - handle --intent-to-add on a renamed resource (#183307) 2023-05-24 13:11:57 +02:00
Joyce Er 9f081fd11a
Open branches on vscode.dev from ref picker (#181549) 2023-05-24 11:23:40 +02:00
Ladislau Szomoru edcad3ab53
GitHub - use GitHub default branch name when publishing to GitHub (#183207) 2023-05-24 11:15:17 +02:00
Joyce Er 0880f76765
Improvements to canonical URI API (#182667)
* Improve API names

* Allow requesting a specific scheme

* Implement ile uri support
2023-05-18 09:23:27 -07:00
Ladislau Szomoru 46c9471450
Git - fix git status regression for git versions older than 2.18 (#182739)
* Git - fix git status regression for git versions older than 2.18

* 💄 - Tweak version number
2023-05-17 11:17:53 +02:00
Ladislau Szomoru b7be44e639
GitHub - fix an issue with toggling branch protection setting (#182536)
* GitHub - fix an issue with toggling branch protection setting

* 💄 Remove variable

* Pull request feedback
2023-05-15 21:03:27 +02:00
Joyce Er 2c5dcb3b81
Allow Continue On between repos with HTTPS and SSH remotes (#182352)
* Deduplicate HTTPS and SSH remote URLs

* Improve doc
2023-05-15 11:37:38 -07:00
Ladislau Szomoru 4981453f79
Git - fix working tree file system watcher regex (#182310) 2023-05-15 16:07:15 +02:00
Ladislau Szomoru f47327fee9
Git - fix branch creation regression (#182504) 2023-05-15 06:57:12 -07:00
Ladislau Szomoru b0252732a7
Git - add similarity threshold setting (#182492) 2023-05-15 12:59:33 +02:00
Peng Lyu 19545fea33
Fix isEmbeddedDiffEditor context key. (#182112)
Fix isInEmbeddedEditor context key.
2023-05-10 14:47:31 -07:00
Ladislau Szomoru b4469cf109
Git - add setting to control default branch name (#181884)
* Initial implementation

* Refactor based on discussions

* More pull request feedback
2023-05-10 20:52:13 +02:00
Ladislau Szomoru 1fc3c56ed8
Git - do not show publish branch action button when a tag is checked out (#181402) 2023-05-03 14:43:15 +02:00
Ladislau Szomoru 5ea57c3b48
GitHub - leveral repository rules for branch protection (#180416)
* WIP - switching to use repository ruleset information

* Handle includes

* Refactor to add support for exclusion

* Fix exclude condition

* Fix request string

* Add logging

* Update setting description
2023-04-20 16:43:42 +02:00
Ladislau Szomoru 45a44d1786
Git/GitHub - Branch protection refactoring (#179848)
Branch protection refactoring
2023-04-13 10:14:33 +01:00
Ladislau Szomoru bb7570f4f8
GitHub - branch protection provider (#179789)
* Initial implementation

* Update default setting state
2023-04-12 17:42:51 +02:00
Ladislau Szomoru a1eb9e2b48
Git - implement branch protection provider (#179752)
* Branch protection using settings is working

* Revert extension api changes

* Refactor code
2023-04-12 08:48:29 +01:00
易良 e9baeb3608
fix: typos (#179581) 2023-04-11 09:20:38 -07:00
Ladislau Szomoru 20aee57124
Git - better validation for the branchProtection setting (#179183) 2023-04-04 23:10:17 +02:00
Ladislau Szomoru 9e6a369b13
Action button - disable button during checkout (#178488) 2023-03-28 21:42:18 +02:00
Ladislau Szomoru 4ad068a9c6
Git - fix quick diff edge case when the resource is inside a submodule (#177691) 2023-03-21 16:27:05 +01:00
João Moreno 8635a5effd
avoid using XDG_RUNTIME_DIR on darwin (#175241)
fixes #168321
2023-02-24 17:33:25 +01:00
Alex Ross 6da385b3a3
Multi quick diff polish (#174584)
Part of https://github.com/microsoft/vscode/issues/169012
2023-02-16 16:15:10 +01:00
Logan Ramos 8e6bcc9b9e
Bump module to new package (#173599) 2023-02-06 12:29:36 -08:00
Ladislau Szomoru 01f32e6a44
Git - do not try to resolve workspace folders that do not use the file scheme (#173546) 2023-02-06 03:33:06 -08:00
Ladislau Szomoru 43db9d2d06
Git - add trace message if workspace folder cannot be resolved (#173410) 2023-02-04 10:15:27 +01:00
Ladislau Szomoru 4b2a44d7ec
Git - fix regression caused by workspace folder that cannot be resolved using fs.realpath() (#173372) 2023-02-03 13:25:25 -08:00
Ladislau Szomoru f50790371b
Git - Add file decoration for a deleted file (#173020) 2023-02-01 14:06:31 +01:00
Ladislau Szomoru 629d643eff
Git - remove gitlens-git from timeline provider (#172844) 2023-01-30 12:25:19 -08:00
Ladislau Szomoru b309525a3b
Git - Limit the enablement "* selected ranges" command palette commands (#172843) 2023-01-30 12:15:33 -08:00
Ladislau Szomoru 2d4f8aeb53
Git - more conservative approach to refreshing the timeline (#172765) 2023-01-30 11:33:48 -08:00
Ladislau Szomoru 475c59b638
Git - Deprecate the refs property (#172772) 2023-01-30 11:33:37 -08:00
Ladislau Szomoru 907e888754
Git - remove the commitInProgress context for the commit message commands (#172761) 2023-01-30 14:25:54 +01:00
Ladislau Szomoru 3ec25a9fbb
Git - add separator to the checkout quick pick (#172762) 2023-01-30 01:55:15 -08:00
Ladislau Szomoru 1c2d4e6c6c
Git - mark a failed operation completed as soon as the error dialog is shown (#172509) 2023-01-30 09:57:09 +01:00
Ladislau Szomoru 73072937bc
Git - deduplicate annotated and lightweight tags when showing the quick pick for tags (#172527) 2023-01-26 15:47:38 +01:00
Joyce Er f63bfe3942
Fix auto publish before Continue On (#172324)
* Fix auto publish before Continue On

* Fix provider implementation
2023-01-25 12:12:18 -08:00
Ladislau Szomoru 82ed9fd51c
Git - fix wording for git repositories in parent folders (#172375)
* Git - update wording based on feedback

* Git - update wording based on feedback
2023-01-25 12:59:15 +01:00
Ladislau Szomoru 88df431511
Git - fix status bar icon for a detached commit (#172271) 2023-01-25 10:52:55 +01:00
Ladislau Szomoru c35bf3b340
Git - change parent folder notification severity (#172230) 2023-01-24 19:18:37 +01:00
Ladislau Szomoru 569f3d1104
Git - update model state if a git operation fails (#172122) 2023-01-24 10:55:05 +01:00
Joyce Er 0a6c277e4f
Ensure Continue in Web and Continue in Clone appear in remote indicator on desktop git and remote git windows respectively (#172086) 2023-01-24 02:29:20 +01:00
Logan Ramos 8cea434dec
Remove unused proposals (#172035) 2023-01-23 19:09:07 +01:00
Ladislau Szomoru b87234ddca
Git - disable one more commands while a git operation is running (#171989)
* Git - disable 3 more commands while a git operation is running

* Do not disable the open change and open all changes commands
2023-01-23 17:13:55 +01:00
Ladislau Szomoru 6ee8313061
Git - update command label so that it is consistent with the other commands (#171987)
💄 Git - update command label so that it is consistent with the other commands
2023-01-23 15:24:08 +01:00
Ladislau Szomoru 9b63d86d77
Git - Add back logging message that was removed during refactoring (#171831) 2023-01-20 15:35:55 +01:00
Ladislau Szomoru 9c3e0aedb1
Git - do not show progress for the LogFile operation (#171828) 2023-01-20 15:03:07 +01:00
Ladislau Szomoru 78f9b06101
Git - handling git repositories in parent folders (#171726) 2023-01-20 09:10:53 +01:00
Ladislau Szomoru be84f97b9a
Git - fix edge case when the repository is at the root of a mapped drive (#171749)
* Git - Handle repository at the root of a mapped drive

* Update comment
2023-01-19 20:46:21 +01:00
Joyce Er 00d12fcdb2
Prompt before auto publishing branch (#171748) 2023-01-19 20:34:54 +01:00
Ladislau Szomoru e37cad47f2
Revert "Git - Improvements to opening git repositories in parent folders (#171617)" (#171662)
This reverts commit fe423bbdba.
2023-01-18 20:57:55 +01:00
Ladislau Szomoru fe423bbdba
Git - Improvements to opening git repositories in parent folders (#171617)
* Initial implementation for external repositories

* Added setting

* Add basic welcome views

* Replaced "Always Open" with "Configure"

* Remove code duplication

* Polish based on feedback

* Language consistency

* Update notification severity

* Move away from the "external repository" terminology

* Refactor notification logic

* Saving my changes

* Further improvements

* Refactor parent repository notification

* Update message and fix edge case when setting is set to `never`
2023-01-18 15:27:58 +01:00
Ladislau Szomoru 9a9d7bfdde
Git - Update getRefs pattern when querying for branches and tags (#171605) 2023-01-18 12:41:32 +01:00
Joyce Er e7d34457a5
Auto publish branches before Continue On in git repositories (#171211)
* Support syncing with remote before Continue On

* Auto publish before Continue On in git extension

* Add configuration description
2023-01-18 11:25:47 +00:00
Ladislau Szomoru df6f1b8ac5
Git - only show unsafe repository notification if we cannot use a welcome view. (#171485) 2023-01-17 13:36:41 +01:00
Ladislau Szomoru f50eeb50b5
Git - Migrate post commit command storage (#171416)
* Git - Migrate post commit command storage

* Make it explicit that migration is async
2023-01-16 13:24:17 +00:00
Ladislau Szomoru 99ecdd4122
Git - Another attempt to fix an edge case for adding a safe directory (#171151)
* Git - Another attempt to fix an edge case for adding a safe directory

* Pull request feedback
2023-01-13 20:10:48 +01:00
SteVen Batten 9194231bb6
support workspace trust keyboard shortcut (#171131)
* support workspace trust keyboard shortcut

* macos test/fix

* Add support for short labels to the Button

* Remove code that is not needed

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2023-01-13 09:42:14 -08:00
Joyce Er d61f46dcf7
Support continue in local clone from remote window (#171134) 2023-01-12 08:03:15 -08:00
Ladislau Szomoru 05baad392b
💄 Git - use double quotation mark in the action button tooltip (#171161) 2023-01-12 14:10:49 +01:00
Babak K. Shandiz ea85d0ce72
🖊 Include branch name in commit button popup (#167827)
* 🖊 Include branch name in commit button popup

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🖊 Include branch name in "Publish" button popup

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2023-01-12 13:52:34 +01:00
Ladislau Szomoru b2b0642c45
Git - Fix bug related to Stash & Checkout (#171099) 2023-01-11 12:07:17 -08:00
RezCoder 85e992bffa
issue 163803/ first pick a ref then pick a name in create-branch-from... (#170908)
* pick a ref then a name in create-branch-from...
2023-01-11 15:13:05 +01:00
Ladislau Szomoru 47fe934057
Git - Fix ref sorting regression (#171058) 2023-01-11 13:22:57 +01:00
Ladislau Szomoru 827636e106
Git - Add getRefs() extension API (#170903)
* Add `getRefs()` extension API

* Cleanup
2023-01-11 11:21:23 +01:00
Ladislau Szomoru 65962c405e
Git - cleanup getRemotes() (#169839)
* Git - cleanup getRemotes()

* Remove test for read-only remote as the code to determine that a remote is read-only has been moved out of the function that does the parsing
2023-01-09 14:24:35 +01:00
Ladislau Szomoru 797f4caca1
Git - Remove dependency on the refs property (#170579)
* Remove usage of repository.refs from merge, rebase, pullFrom

* Remove remaining dependencies
2023-01-06 09:22:14 +01:00
Ladislau Szomoru 74f046bfa9
💄 Git - delete tag does not use repository.refs (#170565) 2023-01-04 17:40:35 +01:00
Logan Ramos 4acf2d9b46
Update the telemetry modules (#170512)
Update the module
2023-01-03 15:10:45 -05:00
Ladislau Szomoru 2377c7a4c5
💄 Git - Add icon to the message item (#170486) 2023-01-03 16:07:23 +01:00
Ladislau Szomoru 1542e90126
Git - Add command to delete remote tags (#170415)
Add command to delete remote tags
2023-01-03 06:08:48 -08:00
Ladislau Szomoru 1d18dfc209
Git - detect when HEAD is a tag (#170271)
* HEAD set when checking out a tag

* Remove more calls

* Remove tag references when in detached mode
2023-01-03 06:07:46 -08:00
Ladislau Szomoru d227bd7495
Git - disable publish branch action button when in detached mode (#170272) 2022-12-30 08:04:46 +01:00
Ladislau Szomoru 77fc799cf3
Git - fix issue with optimistic ui updates (#169824) 2022-12-22 13:33:59 +01:00
Ladislau Szomoru e1719c310d
Git - Add blocking property to operation types (#169781) 2022-12-21 21:29:30 +01:00
Ladislau Szomoru e8b107b85b
Git - Fix bug when we checkout a remote branch detached (#169274)
* Fix bug when we checkout a remote branch detached

* Pull request feedback
2022-12-21 06:54:31 -08:00
Ladislau Szomoru 9e195507a2
Git - Define Operations as types (#169518)
Define Operations as types
2022-12-21 06:53:29 -08:00
Ladislau Szomoru cfca4b0183
Git - Add notification for the stage/unstage/revert selected ranges commands (#169623)
Add notification for the stage/unstage/revert selected ranges commands
2022-12-20 13:52:40 +01:00
Ladislau Szomoru df3d2c350f
Git - Remove remote quick pick includes description and icon (#169571) 2022-12-19 12:09:34 -08:00