Commit graph

2325 commits

Author SHA1 Message Date
Ladislau Szomoru 18b2c92451
Git - remove history provider action button (#199764)
* Git - remove history provider action button

* Remove debug messages
2023-12-01 16:10:44 +01:00
Ladislau Szomoru c6b48c364d
Git - remove references of scm.experimental.showSyncView from the Commit action button (#199616) 2023-11-30 01:21:33 +01:00
Henning Dieterichs 2ec8b37bf3
Adopts diff-multiple icon 2023-11-29 10:43:12 +01:00
Ladislau Szomoru 37425a6fbf
Git - do not show incoming/outgoing for tags, detached (#199476) 2023-11-28 17:46:31 -08:00
Ladislau Szomoru aebfa4798c
Git - Commit action button fix (#199475) 2023-11-29 02:16:59 +01:00
Ladislau Szomoru d689bb7950
SCM - handle empty commit in diff statistics badge (#199438)
* SCM - handle empty commit in diff statistics badge

* Undefined shortStat handled by the history provider
2023-11-28 15:41:20 -08:00
Henning Dieterichs b5f1966e92
Merge pull request #199007 from microsoft/hediet/b/like-wolverine
Adopt config.multiDiffEditor.experimental.enabled
2023-11-27 12:31:58 +01:00
Ladislau Szomoru abd2f00bcc
SCM - implement scm/inputBox menu (#199147)
* SCM - fix regression related to the scm input box action button

* Single action working as expected

* Saving my work

* Fix enablement when there is only one action

* More polish when there are multiple actions

* WIP - Select default action

* Add proposal

* Another refactoring

* Update setting type

* Remove setting, store last executed command

* Revert code that was used for testing

* Fix compilation errors

* Remove test commands
2023-11-27 12:17:26 +01:00
Ladislau Szomoru 10e672c687
Revert "Git - deprecate registerCommitMessageProvider (#198953)" (#199022)
This reverts commit 93ab1bfe22.
2023-11-24 14:12:45 +01:00
Ladislau Szomoru 79f8189bb4
Git - update git.inputValidation default value (#199019) 2023-11-24 12:32:54 +01:00
Henning Dieterichs 95d76848a1
Adopt config.multiDiffEditor.experimental.enabled 2023-11-24 10:49:17 +01:00
Ladislau Szomoru ed6dc7b6b3
Git - fix command titles (#198996) 2023-11-24 09:41:44 +01:00
Ladislau Szomoru 93ab1bfe22
Git - deprecate registerCommitMessageProvider (#198953) 2023-11-23 17:42:17 +01:00
Ladislau Szomoru a776d5fe0a
SCM - input box value provider rendering (#198923)
* Initial implementation

* Remove debug messages

* Implementation using a custom ActionViewItem

* Switched to using a custom action along with the custom action view item

* Switch to using arrays

* Refactored code (single provider is working)

* Add ActionRunner to options

* WIP - saving my work

* Refactor things to support one provider

* Add setting to enable/disable input action button

* Add sourceControlId to the proposed API

* Fix issue related to enablement

* Remove code that is not in scope

* Have the old action bar work with the setting

* Remove code that was commented out

* Add extension API changes

* Update extensions/git/src/commitMessageProvider.ts

Co-authored-by: João Moreno <joao.moreno@microsoft.com>

* Fix compilation errors

---------

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2023-11-23 16:39:53 +01:00
Henning Dieterichs 9e69692508 Improves editor title 2023-11-21 15:09:29 +01:00
Henning Dieterichs 4328415767 Improves open multi diff editor icon 2023-11-21 14:59:01 +01:00
Ladislau Szomoru 6aa249db00
Git - fix incorrect check (#198396) 2023-11-16 10:45:13 +01:00
Ladislau Szomoru e0b70e58b3
SCM - add caching layer to incoming/outgoing tree nodes (#198306)
* Upstream commit + improve onDidChangeCurrentHistoryItemGroup

* Refactor expanding a history item group

* Wire up caching

* Invoking the git.refresh command invalidates the cache

* Clean up cache data structure
2023-11-15 15:09:18 +01:00
Ladislau Szomoru ed30010d3f
Git - better error handling for git merge-base (#198208) 2023-11-14 14:51:17 +01:00
Ladislau Szomoru e447d54e1e
SCM - Add short state badge for history items (#198126)
* Git - Extract parsing of git diff short stat

* Add shortStat badge for commits

* Git - specify diff-merges for merge commits

* Add tests
2023-11-13 16:49:28 +01:00
Ladislau Szomoru d5b3ed3f68
Git - update open commit command icon (#198084) 2023-11-13 09:37:46 +01:00
Ladislau Szomoru 2095b6f5a3
Git - fix readOnly for the Config operation (#197918) 2023-11-10 15:05:39 +01:00
Ladislau Szomoru 64783a4eb9
Git - incoming/outgoing polish (#197877)
* Git - refactor diffBetweenShortStat to return an object with files, insertions, and deletions

* Add statistics label tooltip
2023-11-10 02:40:58 +01:00
Ladislau Szomoru 8de9ba22b2
SCM - add statistics badge for incoming/outgoing (#197876)
* Initial implementation of the stats pill

* Parse git output and propagate the statistics
2023-11-09 18:05:34 -07:00
Ladislau Szomoru acff02431f
SCM - Add Incoming/Outgoing information into the Source Control view (#197771) 2023-11-09 20:18:09 +01:00
Henning Dieterichs 090fd2c772
Implements first iteration of multi diff editors.
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2023-11-07 16:51:38 +01:00
Logan Ramos 9bea1fc96a
Bump telemetry package (#197168) 2023-11-01 20:51:03 +01:00
Ladislau Szomoru 56088b01d9
Git - fix issue related to opening parent repositories (#196822) 2023-10-27 06:42:08 -07:00
Ladislau Szomoru 9d2ff86b00
Git - Track attempt count in the test commit message provider (#196348) 2023-10-25 10:15:45 +02:00
Tatsunori Uchino 2683aa01ac
Add support for --force-if-includes to force push more safely (#187932)
* Add support for `--force-if-includes` to force push

* Change force push failed error message

* Separate force push (no with lease) failed error message

* Switch to `"markdownDescription"`

* Add Git version requirement for config description

* Improve error message when safer force push is rejected

* Eliminate the option's effect if Git is too old

* Minor improvements to community contribution

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2023-10-23 17:47:46 +02:00
Ladislau Szomoru 4cd1f6ce84
Git - automatically wrap generated commit message (#196268)
* Git - automatically wrap generated commit messages

* Handle edge cases when wrapping the commit message
2023-10-23 15:22:45 +02:00
Ulugbek Abdullaev c6dcdc753b git: print more info when relative path not found 2023-10-23 13:57:39 +02:00
Ulugbek Abdullaev d4586b43cd git: GitError captures stacktrace 2023-10-23 13:57:39 +02:00
Ladislau Szomoru 67df0670ba
Git - set action button command argument (#196216) 2023-10-23 08:19:52 +02:00
Ladislau Szomoru b8c3c75f5d
Git - Update CommitMessageProvider git extension API (#196170)
Update CommitMessageProvider git extension API
2023-10-21 09:15:39 -07:00
Ladislau Szomoru c05b49710b
SCM - Add proposal for inputBox action button (#196121)
* SCM - Add proposal for inputBox action button

* More reliable fix for overlapping
2023-10-21 09:51:24 +02:00
Ladislau Szomoru fdb4d48ff1
Git - cleanup OperationKind enum (#195327) 2023-10-10 22:49:10 -07:00
Greg Van Liew ef0871b7bb
Edits to setting descriptions (#195007) 2023-10-06 10:04:37 -07:00
Ladislau Szomoru d4fb31c56d
Git - fix relativePath() edge case (#194653) 2023-10-05 15:37:52 +02:00
Ladislau Szomoru 9434d9437a
Git - do not show origin/HEAD in the checkout quick pick. This item will only be shown when checking out detached. (#194592) 2023-10-02 12:38:10 +02:00
Ladislau Szomoru 707e061b3a
Git - use commit id for the left-hand editor (#194302)
* Git - use commit id for the left-hand editor

* Remove console.log
2023-09-27 15:24:35 +01:00
Ladislau Szomoru 3a0b6baa61
Git - provide correct editor title for resources under the "All Changes" node (#194273) 2023-09-27 12:05:58 +02:00
Ladislau Szomoru 8e80e950a4
Git - improve heuristics for determining branch base (#193986)
* Add getBranchBaseFromReflog

* Read/store branch merge base in the git config

* Add getBranchBase() extension api
2023-09-25 15:12:10 +01:00
Ladislau Szomoru 33ba908ab4
Git - refactor getting base of a branch (#193973) 2023-09-25 14:41:47 +02:00
Ladislau Szomoru 419e445f8d
Git - fix regular expression for fully qualified ref names (#193953) 2023-09-25 11:25:51 +02:00
Ladislau Szomoru 54fc6334f5
Git - fix file decoration for history item changes (#193755) 2023-09-22 07:27:26 +01:00
Logan Ramos cc98e55794
Fix slow telemetry module (#193607) 2023-09-20 20:14:12 +01:00
Ladislau Szomoru 943d5b2c5c
SCM - Add file decorations to history item changes (#193576)
SCM - Add file decorations to history items
2023-09-20 16:11:15 +01:00
Ladislau Szomoru ceda6cc485
SCM - set of fixes for the SCM Sync View (#193567) 2023-09-20 13:57:14 +01:00
Ladislau Szomoru 3e31b71648
SCM - more cleanup of the SCMHistoryProvider API (#193509) 2023-09-19 21:00:13 +02:00
Ladislau Szomoru 1545aeab06
SCM - Initial implementation of the Sync view (#193440) 2023-09-19 15:58:22 +02:00
Joyce Er bb99b7452a
fix: render setting reference links in settings UI (#192628) 2023-09-08 23:21:31 +02:00
Ladislau Szomoru 5ffa9573af
Git - remove extra character from the log message (#192622) 2023-09-08 16:25:12 -04:00
Ladislau Szomoru 3788d799d2
Git - improve logging for git detection (#192297) 2023-09-06 07:30:59 -07:00
Ladislau Szomoru a4e1870896
Git - fix stage/unstage selected ranges in nested git repositories (#191987)
* Git - fix stage/unstage selected ranges in nested git repositories

* Remove the submodule check as it is being covered by the repository check

* Pull request feedback
2023-09-06 14:35:55 +02:00
Ladislau Szomoru b9e4141833
Revert "Remove superfluous arg in git smoke.test.ts (#173194)" (#192161)
This reverts commit 9dd556a9e0.
2023-09-04 20:43:33 +02:00
Ladislau Szomoru 4a3ed95527
Git - clarify git extension API usage (#192139)
* Git - clarify git extension API usage

* Fixed white space
2023-09-04 15:40:56 +02:00
justanotheranonymoususer 9dd556a9e0
Remove superfluous arg in git smoke.test.ts (#173194) 2023-09-04 14:44:03 +02:00
Alex Ross 1ac6f50f44
Enable the .. argument for git log (#188500)
* Enable the `..` argument for git log
This will return the commits that the `toRef` has but the `fromRef` does not.

* Use range instead
2023-09-04 14:36:16 +02:00
Ladislau Szomoru be570fd3de
Git - Bump which package (#191992) 2023-09-01 16:40:56 +02:00
Ladislau Szomoru fdcc959e0a
Git - update Explorer welcome view context key (#191788) 2023-08-30 16:43:56 +02:00
Ladislau Szomoru c7d46b2430
Git - improve getRepositoryExact() error handling (#191462)
* Git - improve getRepositoryExact() error handling

* Run async operations in parallel
2023-08-28 16:34:46 +02:00
Ladislau Szomoru a0ac773aca
Git - fix issue with smart commit and dirty documents (#191300) 2023-08-25 12:01:37 +02:00
Logan Ramos ecb0c80fc1
Bump extension telemetry module (#191237)
* Bump extension telemetry module

* Fix webpack
2023-08-24 12:53:41 -07:00
Alpha Romer Coma 7ef754c2f6
Fix supported markdown-lint violations in markdown files (#190750)
docs: fix supported markdownlint violations
2023-08-24 08:37:25 +00:00
Matt Bierner 3f8a55b32c
trimLeft -> trimStart (#190601)
These should be the same but the `trimLeft` name has been deprecated
2023-08-16 11:11:20 -07:00
Joyce Er 4083eeefc1
Preserve ref in desktop remote -> local clone (#189852) 2023-08-07 19:34:17 +01:00
Robo ea490e5545
chore: update to Electron 25 (#188268)
* chore: update electron@25.3.0

* ci: update NodeTool version

* chore: update @types/node

* add more common types to layers checker

* chore: update debian dependencies

* chore: update rpm dependencies

* fix: use legacy dns result order of Node.js

* ci: remove deprecated always-auth npm config

Refs npm/cli@72a7eeb

* chore: update deb and rpm dependencies

* chore: update armhf rpm dependencies

* chore: update x64 debian dependencies

* chore: update x64 rpm dependencies

* chore: update electron@25.3.1

* chore: update electron@25.4.0

* chore: bump distro

* chore: bump distro

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2023-08-07 21:46:27 +09:00
Ladislau Szomoru ad395686d2
Git - add support for type changed (#187714)
* Initial implementation

* Add icons
2023-07-12 16:18:38 +02:00
Raymond Zhao 5be539a588
Bump semver (#187654) 2023-07-12 01:49:45 +02:00
Ladislau Szomoru 8baa7ed3e3
Git - fix repository detection regression (#187578) 2023-07-11 15:09:39 +02:00
Ladislau Szomoru f254ad1758
Git - Add Commit (Amend) to the Commit Action button (#187568) 2023-07-11 14:24:23 +02:00
Ladislau Szomoru ccea02b96d
Git - avoid opening a repository multiple times if symbolic links are used (#187435) 2023-07-10 15:16:02 +02:00
Joyce Er 437342409b
Force new window for remote -> local Continue On (#187301)
Force new window for remote -> local clone
2023-07-07 20:27:09 +02:00
Ladislau Szomoru 3b9f2825b7
Git - better handle symbolic links (#186716)
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2023-07-05 12:56:26 +02:00
Ladislau Szomoru 8265c3ec21
Git - introduce group is the long submenus (#186917) 2023-07-03 16:24:19 +02:00
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