Commit Graph

296 Commits

Author SHA1 Message Date
Ladislau Szomoru
e4e61e5ffa Git - dispose untrusted repositories when trust state changes (#291498) 2026-01-29 09:12:59 +01:00
Ladislau Szomoru
1bf610daab Git - request resource trust for the parent folder of the .git folder (#291261) 2026-01-28 11:56:25 +00:00
Ladislau Szomoru
3fbb12a61c Git - fix open repository command (#290836)
* Git - fix open repository command

* Missed couple of places
2026-01-27 16:41:51 +01:00
Ladislau Szomoru
4ac2f00e07 Git - fix bug causing multiple resource trust dialogs when worktrees are present (#290707) 2026-01-27 08:32:18 +00:00
Ladislau Szomoru
3a95c41dac Git - delay trust request until we are certain that we can open the repository (#290594) 2026-01-26 23:25:18 +00:00
Ladislau Szomoru
7c84594330 Git - open repositories in an empty workspace without seeing the notification about parent folders (#290433) 2026-01-26 17:03:22 +00:00
Ladislau Szomoru
b962957183 Workspace Trust - add support to request trust for a resource (#290404)
* Initial implementation

* Pull request feedback
2026-01-26 15:59:55 +00:00
Ladislau Szomoru
5533614b42 Git - repository picker should not contain hidden source control providers (#285893) 2026-01-05 10:07:31 +00:00
Ladislau Szomoru
d0bba70758 Git - do not prompt when opening a worktree (#285107)
* Git - do not prompt when opening a worktree

* Pull request feedback
2025-12-26 13:37:44 +00:00
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