Commit Graph

287 Commits

Author SHA1 Message Date
Ladislau Szomoru
ae77536e70 Git - cleanup delete worktree command implementation (#278018) 2025-11-18 00:17:55 -08:00
Ladislau Szomoru
2b52b93770 Git - enable ESLint rule for git extensions (#277156)
* Initial commit with all exceptions

* First pass of fixing

* Add ignored files explicitly
2025-11-13 15:35:01 +00:00
Alex Ross
3cc447e709 Improve layering for git model (#272857)
* Improve layering for git model
- Git clone doesn't belong in the model, removed it
- All the extra repo picking didn't seem to fit into `Git` though, as that is really about git operations
- Added a `CloneUtils` namespace for all the clone stuff to live.

* Update extensions/git/src/clone.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* CloneManager class

* public/private
2025-10-23 16:04:35 +02:00
Alex Ross
dda6e09f62 Update git clone to use new repo cache (#272276) 2025-10-22 21:06:20 +02:00
Alex Ross
f93044c015 Maintain a cache of repo remotes that we know about (#271652)
* Maintain a cache of repo remotes that we know about
Part of #271101

* Save workspace file or folder instead of repo root path

* PR feedback
- Rename to repositoryCache
- Remove timestamp
- Move logic into repo cache
- Fix tests

* Name changes

* Actually delete

* Fix change that got lost in the rename
2025-10-20 18:16:04 +00:00
Ladislau Szomoru
1a72b133fd Git - add context key for merge conflict detection (#268183) 2025-09-24 15:33:01 +00:00
Ladislau Szomoru
35eddf193f Revert "Git - honor detectSubmodules and detectWorktrees settings when opening a workspace from a file" (#259005)
This reverts commit 655258b05e.
2025-07-31 15:26:48 +02:00
Ladislau Szomoru
0b25736ee6 Git - detect worktrees when opening a worktree (#258980) 2025-07-31 10:52:07 +00:00
Ladislau Szomoru
2f09f40b0b Git - honor detectSubmodules and detectWorktrees settings when opening a workspace from a file (#257813) 2025-07-25 13:47:43 +02:00
Ladislau Szomoru
c7ad864491 Git - add the ability to limit command palatte commands to repository types (#257261) 2025-07-22 06:12:34 -07:00
Christy 😺
dd052e8d44 rework deletion flow (#256415)
* rework deletion flow

* change delete label

* Revise deletion of worktree

* reopen correct repo

* clean up

* Refactor deleteWorkspace command

* Do not show deleteWorktree command in the command palette

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2025-07-18 07:06:08 -07:00
Ladislau Szomoru
faa9f0afcc SCM - proposed API to represent parent/child relationship (#256242)
* Add plumbing for parent/child relationship

* Fix selected and view height

* More clean-up

* More fixes related to view height

* Dispose submodules and worktrees

* Add onDidDisposeParent event
2025-07-17 14:54:32 +00:00
Ladislau Szomoru
d10e7bc100 Git - do not prompt for opening worktrees (#256059) 2025-07-15 08:41:26 -07:00
Christy 😺
4576aa4385 Enable viewing of worktrees under Repositories (#254992)
* init

* fix: correct configuration key for detecting Git worktrees

* Fixed misspelling of worktrees and populated worktree list

* exported parseGitWorktrees

* Replaced git commands with file system reader

* Removed trailing './git' from path

* Prevent errors when accessing empty worktree directory

* Enable worktree deletion

* code clean up

* Remove exposure to git extension

* labeling and minor fixes

* throw error when no worktrees created

* Error handling when getting worktrees

---------

Co-authored-by: bhavyaus <bhavyau@microsoft.com>
2025-07-14 11:27:00 -07:00
Ladislau Szomoru
6c8a25ae47 Git - distinguish between repository, submodule, and worktree (#255374) 2025-07-11 15:35:09 +02:00
Ladislau Szomoru
d9909effe9 Git - 💄 log repository real path as well (#244954) 2025-03-28 11:19:43 +01:00
Ladislau Szomoru
ba2aa54fc6 Git - fix post-commit command for multi-repo workspaces (#239462) 2025-02-02 22:26:32 -08:00
Ladislau Szomoru
7610cc1d19 Git - 💄 fix history item details provider name (#238045) 2025-01-16 20:25:19 +09:00
Ladislau Szomoru
eaba97f995 Git - extract history item detail provider (#238041)
* Initial refactor of hover commands

* Delete old code for hover commands

* More refactoring
2025-01-16 11:37:27 +01:00
Ladislau Szomoru
aa6a38114c Git - add stage/unstage commands to editor title (#237257) 2025-01-04 10:15:35 -08:00
Ladislau Szomoru
f3930566bd Git - 💄 fix log message format (#221218) 2024-07-08 20:51:52 +02:00
Ladislau Szomoru
c040699c44 Git - standardize logging in the git extension (#220043)
* Git - more logging

* Git - more logging changes
2024-07-05 11:26:48 +02:00
Ladislau Szomoru
83c722d9a1 Git - 💄 better error handling and clean-up logging (#219975) 2024-07-04 17:12:06 +02:00
Ladislau Szomoru
cf3e34fc2f Git - add error handling for traversing workspace folders during repository discovery (#213975) 2024-05-31 11:24:12 +02:00
Ladislau Szomoru
dd2038279d Git - fix repository deduplication logic (#203836) 2024-01-30 21:54:36 +01:00
Ladislau Szomoru
1466cbfcdf SCM - delete scmInputBoxActionButton proposal (#200012) 2023-12-05 10:52:01 +01:00
Ladislau Szomoru
56088b01d9 Git - fix issue related to opening parent repositories (#196822) 2023-10-27 06:42:08 -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
5ffa9573af Git - remove extra character from the log message (#192622) 2023-09-08 16:25:12 -04: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
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
8baa7ed3e3 Git - fix repository detection regression (#187578) 2023-07-11 15:09:39 +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
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
b51aabb6dc Git - fix welcome view regression (#185233) 2023-06-15 16:57:31 +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
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
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
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
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
907e888754 Git - remove the commitInProgress context for the commit message commands (#172761) 2023-01-30 14:25:54 +01: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
c35bf3b340 Git - change parent folder notification severity (#172230) 2023-01-24 19:18:37 +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
78f9b06101 Git - handling git repositories in parent folders (#171726) 2023-01-20 09:10:53 +01:00