66 Commits

Author SHA1 Message Date
Matt Bierner
a453d99821
Port git extension to use esbuild
Fixes #296355
2026-02-26 14:10:15 -08:00
Dmitriy Vasyura
0fb77198a8
feat: add AI co-author support for commits (#296435) 2026-02-23 18:57:10 -08:00
Copilot
1872cb3854
Add garbage collection for unused content-addressed askpass directories (#289723)
* Initial plan

* Add garbage collection for old content-addressed askpass directories

- Implement updateDirectoryMtime to update folder mtime when used
- Add garbageCollectOldDirectories to remove folders older than 7 days
- Update ensureAskpassScripts to call GC on every activation
- Add comprehensive test coverage for GC functionality

Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>

* Remove GC from fast path to keep it fast

Only run garbage collection when creating new directories, not when reusing existing ones. Old folders only accumulate when creating new content-addressed directories.

Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>

* Hoist askpassBaseDir variable to avoid duplication

Declare askpassBaseDir once at the top of the function and reuse it when constructing askpassDir and when calling garbageCollectOldDirectories.

Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>

* Fix test failures and address bot review comments

- Export ensureAskpassScripts for testing to avoid dependency on isWindowsUserOrSystemSetup check
- Remove redundant success log after directory removal
- Update tests to call ensureAskpassScripts directly instead of getAskpassPaths
- Remove Windows-only restrictions from tests to make them cross-platform
- Remove setTimeout workarounds - tests now properly await async operations

Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>

* formatting

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-01-29 10:35:40 +00:00
Alex Ross
d42b85fdc6
Support .git in repo cache and improve language (#275075)
* Support .git in repo cache and improve language
Done while testing https://github.com/microsoft/vscode/issues/274930

* Tests
2025-11-04 16:48:24 +01: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
4d7c56ee82
Engineering - Add GitHub action for pull requests (#254056)
* Test - handle running tests as part of a GitHub action

* Add GitHub action files
2025-07-04 08:21:56 +00:00
Ladislau Szomoru
35a79740ae
Git - integration tests should use workspace path and not the real path to avoid random failures (#244959) 2025-03-28 12:03:05 +01:00
Johannes
e6f315d2fc
eng - use esModuleInterop for extensions 2024-10-01 21:57:30 +02:00
Ladislau Szomoru
0dea65fe0d
Git - rework integration tests (#229926)
* Git - rework integration tests

* Fix test
2024-09-27 11:38:10 +02:00
Ladislau Szomoru
deea09a36f
Git - remove the usage of cp.execSync from git integration test. Add assertions. (#229395) 2024-09-23 18:00:23 +02:00
Ladislau Szomoru
a90e2f4e0f
Git - attempt to improve test reliability (#229160) 2024-09-20 16:55:45 +02: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
b9e4141833
Revert "Remove superfluous arg in git smoke.test.ts (#173194)" (#192161)
This reverts commit 9dd556a9e06a6f9b5d7e734fea9ec00d34071a63.
2023-09-04 20:43:33 +02:00
justanotheranonymoususer
9dd556a9e0
Remove superfluous arg in git smoke.test.ts (#173194) 2023-09-04 14:44:03 +02: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
Matt Bierner
57dd298b47
Add typings for test runner scripts (#169196) 2022-12-15 02:19:24 +01:00
Ladislau Szomoru
b4eaea6bc6
Git - get remotes from the config file (#165909) 2022-11-10 14:35:43 +01:00
Ladislau Szomoru
566e71b346
Revert "Git - parse config file for remotes (#164151)" (#164433)
This reverts commit 798cd3bcac2039242f932f59d07d33376c59733a.
2022-10-24 13:28:06 +02:00
Ladislau Szomoru
798cd3bcac
Git - parse config file for remotes (#164151) 2022-10-21 06:57:22 -07:00
Logan Ramos
256aaf296b
Don't use @microsoft.com in source code (#163933) 2022-10-18 07:38:15 -07:00
Johannes
7a51178618
git should open merge editor with detail and description (tag and commit-hash) 2022-05-17 13:46:42 +02:00
João Moreno
1af9ac1b8f
fixes #138274 2021-12-02 11:51:15 +01:00
Benjamin Pasero
fb48ad43fb
git - make integration tests agnostic to file watcher issues (#136933) 2021-11-11 07:50:07 +01:00
Logan Ramos
656e1e6086
More deprecated assertion cleanup 2021-05-04 15:55:26 -04:00
Logan Ramos
025fcaf611
remove old asserts from git tests 2021-05-04 15:32:21 -04:00
Benjamin Pasero
14981ce89d tests - enable colors for windows (CI supports it and the new Windows terminal too) 2021-04-19 09:29:20 +02:00
Raymond Zhao
a5f7945b3b
Update git test for integration tests, fixes #120116 2021-03-29 09:39:39 -07:00
Benjamin Pasero
e916637528 tests - enable color output for integration tests 2021-03-01 15:10:15 +01:00
joan xie
1bb2ae0e36
Allow ResourceCommandResolver.getRightResource() to return undefined (#113364) 2021-01-05 01:05:23 -05:00
Alexandru Dima
7ca71e763d
Move away from deprecated 'vscode' node module (#112718) 2020-12-17 21:40:14 +01:00
João Moreno
47116a8acd fixes #108371 2020-10-12 11:04:30 +02:00
Ladislau Szomoru
06730e3e29
Azure DevOps pipeline - generate unique test result names (#105148)
* Set suite name based on environment variable
2020-08-21 15:05:15 +02:00
Ladislau Szomoru
b2efcbf687
Add process.arch into the test results file name (#104946) 2020-08-19 07:48:37 +02:00
Pine Wu
2362584a62 Revert "Fix #73803"
This reverts commit 67e6aef0c85ed17ef673950ecc24c12df7f2d7a8.
2020-03-06 00:30:14 -08:00
Pine Wu
4857a9a746 Revert "Fix integration test"
This reverts commit 5a0ab960f04876886d500b02407734e14c92d1ff.
2020-03-06 00:29:57 -08:00
Pine Wu
5a0ab960f0 Fix integration test 2020-03-05 12:41:06 -08:00
Pine Wu
67e6aef0c8 Fix #73803 2020-03-05 11:34:58 -08:00
Joao Moreno
595f98455b
fix git tests 2020-02-18 13:56:16 +01:00
Joao Moreno
dde577b23e
activate git before smoke tests 2020-02-05 15:03:05 +01:00
Joao Moreno
7ed9930136
💄 2020-02-05 11:42:33 +01:00
Joao Moreno
ba25c52127
more git smoke test fixes 2020-02-05 10:57:30 +01:00
Joao Moreno
06dbb1938f
make sure git is activated before integration tests run 2020-02-05 10:24:47 +01:00
Joao Moreno
d2f9126da3 git tests: windows is pain 2020-02-04 20:54:46 +01:00
Joao Moreno
54007fa545 fix git smoketests 2020-02-04 20:26:12 +01:00
Joao Moreno
16c7551f36
move git smoke tests to integration tests 2020-02-04 17:06:49 +01:00
Joao Moreno
1dd16ab728
setup git integration tests 2020-02-04 12:35:28 +01:00
Joao Moreno
c606dd95e1
fix git tests 2020-02-04 12:35:28 +01:00
Eric Amodio
87c2332fed Adds timeline diff on click and icon support 2020-01-27 15:28:33 -05:00
Joao Moreno
a6177d979a cleanup for pr #66095 2019-08-06 17:49:42 +02:00