Commit Graph

27 Commits

Author SHA1 Message Date
Dmitriy Vasyura 4a3ea92149 Limit size of diffs and untracked filesreported by GitDiffService (#3743) 2026-02-17 20:12:54 +00:00
Ladislau Szomoru 50afece235 Background - do not sign commits in the background agent session (#3316) 2026-01-30 13:32:31 +00:00
Don Jayamanne 04a9e0d354 Welcome View: repository picker for background sessions (#3103)
* Untitled repository picker for background sessions

* Updates

* updates

* Include just what we need

* Fodler picker with verification of trust

* Fix tests

---------

Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2026-01-26 23:40:26 +00:00
Ladislau Szomoru fd1fea978e Git - remove duplicate property (#3110) 2026-01-23 08:43:05 +00:00
Osvaldo Ortega 9dad237cd5 Excluding worktrees from uri handler (#3086) 2026-01-22 23:35:15 +00:00
Ladislau Szomoru c6e577de5c Git - ensure active repository is set upon startup (#3072)
* Git - ensure active repository is set upon startup

* Handle empty workspaces
2026-01-22 21:01:04 +00:00
Ladislau Szomoru e4ba016ae1 Background - add repository picker for workspaces containing multiple repositories (#3046)
* Initial commit

* More cleanup

* Try to fix the tests

* Fixes

* default selected repo if there's only one

---------

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
2026-01-22 03:03:39 +00:00
Ladislau Szomoru 01d6644e68 Git - ensure repository state is up to date when committing changes (#2878) 2026-01-15 20:28:12 +00:00
Ladislau Szomoru 038e1be254 Copilot CLI - adopt new git extension API to improve applying a patch (#2725) 2026-01-07 06:20:12 +00:00
Ladislau Szomoru 165f01f7c7 Background - improve worktree changes calculation (#2685)
* Background - improve worktree changes calculation

* Adjust order

* Pull request feedback
2025-12-27 20:08:50 +00:00
Ladislau Szomoru 827a5aefdb Copilot CLI - local background agent (#2642)
* WIP - add code to commit changes

* WIP - saving my work

* Refactored the code to use the same memento

* Use vscode.Uri instead of string for worktree path

* Adopt the new diffWithStats git extension API

* Fix unit tests

* Got the Apply action working

* Pull request feedback

* Pull request feedback

* More logging to help debug any issues with committing changes
2025-12-22 16:12:42 +00:00
Ladislau Szomoru f6fa558fa4 Git - fix issue with active repositry state being stale (#2659) 2025-12-22 13:46:59 +00:00
Ladislau Szomoru 483cd9003c Git - fix incorrect calculation of short stats diffIndexWithHEADShortStats() (#2476) 2025-12-08 09:32:55 +00:00
Ladislau Szomoru a11c76f427 Copilot CLI - do not open repository to compute worktree statistics (#2461) 2025-12-08 01:34:48 +00:00
Matt Bierner 79099f491d Re-work code search implementation (#2279)
* init

* Re-work code search implementation

Prepping for future work by making it easier to have individual repos in a workspace handle code search their own way. The previous implementation had gotten kind of unwieldy after we bolted on the ADO support. Extending it further would have made this even worse
2025-12-01 01:28:54 +00:00
Ladislau Szomoru f8e82bac98 Copilot CLI - adopt migrateChanges git extension API (#2109) 2025-11-20 13:03:31 +00:00
Ladislau Szomoru 5b5ca0af6b Copilot CLI - switch over to using new git extension api (#2068) 2025-11-19 02:06:14 +00:00
Peng Lyu 65900852c9 CLI MCP support (#1909)
* CLI MCP support

* builtin github mcp

* dedup github mcp server based on url

* put cli mcp behind setting

* 💄
2025-11-11 05:14:56 +00:00
Ladislau Szomoru 69be7776e1 Copilot CLI - publish statistics for session using git worktree (#1874)
* Copilot CLI - publish statistics for session using git worktree

* Refactor things to stage changes

* Fix test

* Pull request feedback

* Fix test

* Another attempt to fix tests
2025-11-10 06:34:43 +00:00
Ian Huff 72f954ec9e Fix issue with internal git repo telemetry collection (#1408)
* initial code changes, tested manually in multiple scenarios

* added readable string for status value

* tests fixed up

* handle untracked new files

* fix existing tests

* new unit test for untracked files

* fix comment

---------

Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro-2.local>
2025-10-24 21:59:23 +00:00
Osvaldo Ortega 27adc21ae5 Support for opening session on different workspace (#1481)
* Support for opening session on different workspace

* Example of how to use the new git API

* Fixes

* Fixes

* Missing decode

---------

Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
2025-10-23 21:17:00 +00:00
Ian Huff 2f0d436311 New internal only repository telemetry request from science team (#1234)
* fetch basic repo info

* first whack at a basic fetching of full workspace diff from head

* Change to using git diff serviced and revert changes to git service, only start task for internal users

* tweak to diffing vs upstream head, not local head

* add location in

* tweak types and how location / id are added

* debug logging to be removed later

* add multiplex for properties

* couple smaller comment tweaks

* save state before bigger architectural change

* refactor for new location + new file done, basic manual test worked ok

* small change

* first pass at file watcher

* tweak to type and check to see if the diff is too large

* capture the full change object

* unit tests fixed up

* unit tests added, mostly via Claude, reviewing next

* one more check needed for file changed

* remove logging

* add a couple comments to repoInfoTelemetry

* add comment

* put back in blank lines per copilot comment

* tweak begin event location

* couple of quick PR changes

* initial size changes

* remove helper function and update test

* fix telemetry end of file

* send noChanges when repo same as upstream

* PR tweaks

* changes to not send end telemetry if begin fails

* ADO support

* tests updated

* update product code for adding repo file count and changed file count

* tests added and updated

* couple small comment changes

* quick change for testing

* typo update and test update

* DELETE to MODIFIED to make a test more clear

* added clarifying comment to test

---------

Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro-2.local>
Co-authored-by: Ian Huff <ianhuff@Mac.home>
2025-10-14 22:11:17 +00:00
Ladislau Szomoru 60e3bba14e Git - add context menu action to resolve merge conflicts (#1011)
* Git - wire up the codelens and command for merge conflict resolution

* Refactor code so that we are not using a codelens

* Rename folder

* Cleanup a change that is not needed

* Reorder imports

* Some code cleanup

* Update src/extension/git/vscode/mergeConflictParser.ts

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

* Fix compilation error

* Attempt to fix tests

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-11 07:07:20 +00:00
Osvaldo Ortega 5657be62ed Fix for remote url missing in repo context (#450) 2025-08-04 23:13:18 +00:00
Ulugbek Abdullaev 6c7f7fbed6 logService: simplify API (#375) 2025-07-28 08:00:50 +00:00
Matt Bierner c4f2857249 Speed up getting files for workspace index (#188)
For https://github.com/microsoft/vscode/issues/254952

- Run `isIgnored` check in parallel

- Skip `repoToRepoContext`. This creates an `RepoContextImpl` object which is expensive since it has observable properties that are all eagerly created

- Add cancellation checks in a few places

- Skip creating an observable in `waitForRepositoryState` if we already have a state
2025-07-10 17:24:46 +00:00
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00