Commit Graph

178 Commits

Author SHA1 Message Date
Matt Bierner
a453d99821 Port git extension to use esbuild
Fixes #296355
2026-02-26 14:10:15 -08:00
João Moreno
e37fdc9118 fix: move askpass scripts to stable location (#289400)
* fix: move askpass scripts to stable location

fixes #282020

* Update extensions/git/src/askpassManager.ts

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

* use global storage

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-22 07:20:27 -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
Ladislau Szomoru
bbe85db188 Git - remove usages of any (#270075)
* Git - remove usages of `any`

* 💄 fix check
2025-10-06 18:23:03 +00:00
Matt Bierner
360c9fd134 Add lint rule for as any and bulk ignore all existing breaks
For #269213

This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks

Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Ladislau Szomoru
973a531c70 Git - add logging for askpass (#250109) 2025-05-30 09:17:20 -04:00
Ladislau Szomoru
7452464515 SCM - add secondary quick diff provider (#246707)
* WIP - initial implementation

* Add stagedQuickDiffProvider API

* Reduce the usage of `isSCM`

* Make unstage feel snappier

* Deduplicate diffs between primary and secondary

* Fix unstage selected ranges to work from the editor

* WIP - saving my work

* Fixed deduplication and commands

* Add pattern colors

* Rework the colors, and fix deleted glyph

* Got unstage commands working

* Update provider name

* Some improvements

* Cleaned up CSS

* Tweak decoration colors

* Update proposed API naming

* Contributed decorations will use the primary colors for the time being

* More cleanup
2025-04-16 12:52:36 +02:00
Ladislau Szomoru
41ecdd700c Git - add more logging to provideOriginalResource() (#246242) 2025-04-10 14:20:04 -07:00
Ladislau Szomoru
959d01a2a5 Git - fix regression with commits that contain addition/deletion/rename (#238349)
* Git - fix regression with commits that contain addition/deletion/rename

* Fix compilation error
2025-01-21 11:44:21 +01:00
Ladislau Szomoru
777fd07ccc Git - adopt #private in Git extension API (#236444)
* Git - adopt #private in Git extension API

* Fix post commit command provider
2024-12-18 11:20:00 +01:00
Ladislau Szomoru
3067477dd7 Git - extract staged resource quick diff provider (#234425)
* Git - extract staged resource quick diff provider

* Fix the build
2024-11-22 15:40:25 +00:00
Ladislau Szomoru
d8d0ddba9c Git Blame - refactor implementation to use an additional dirty diff provider (#234420)
* Initial implementation using a quick diff provider

* Add proposed API to hide a dirty diff decorator
2024-11-22 14:12:32 +00:00
Ladislau Szomoru
80635b487b Git - experimental git blame editor decoration (#234209)
* Initial implementation

* Add setting, and cache blame information more aggressively
2024-11-19 22:05:19 +01:00
Ladislau Szomoru
289056d976 Git Editor - create document link provider (#230389) 2024-10-03 13:58:27 +02:00
Ladislau Szomoru
b17732f43c Git - add terminal shell execution listener (#221895) 2024-07-17 14:28:09 +05:30
Ladislau Szomoru
83c722d9a1 Git - 💄 better error handling and clean-up logging (#219975) 2024-07-04 17:12:06 +02:00
Ladislau Szomoru
9aa943b890 Git - toggle diagnostics when git.experimental.inputValidation setting changes (#205355) 2024-02-16 15:06:36 +01:00
Ladislau Szomoru
20c0f83f1b Git - experimental input validation using diagnostics (#204822)
* Initial implementation

* Add setting + code actions
2024-02-09 14:19:30 +01:00
Ladislau Szomoru
3788d799d2 Git - improve logging for git detection (#192297) 2023-09-06 07:30:59 -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
2c8b54bbbf Git - Add support for git stash --staged (#169539)
Add support for git stash --staged
2022-12-19 15:04:55 +01:00
Ladislau Szomoru
f57d336cfc Git - Move log change event handler to main (#166965)
Move log change event handler to main
2022-11-22 06:51:33 -08:00
Logan Ramos
bf1697d98c Consume proposed telemetry API (#165862)
* Consume proposed telemetry API

* Update webpack
2022-11-08 21:58:28 -05:00
Logan Ramos
eafc1e0fe1 Remove overzealous telemetry (#165524) 2022-11-04 10:47:35 -07:00
Ladislau Szomoru
f60ff405f4 Git - Add "OK, Don't Ask Again" button to the publish branch prompt (#165487)
Add "OK, Don't Ask Again" button to the publish branch prompt
2022-11-04 12:41:17 +01:00
Ladislau Szomoru
f09c4124a2 Engineering - adopt l10n for git-base/git/github extesions (#164566)
Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>
2022-10-28 11:27:08 +02:00
Ladislau Szomoru
e1e7ce5d17 Git - adopt log output channel api (#163695) 2022-10-17 02:49:12 -07:00
Johannes Rieken
b2b7e0be6e send telemetry about git-exec duration (#162731)
* send telemetry about git-exec duration

* measure spawn and exec
2022-10-06 04:04:35 -07:00
Joyce Er
51ab74bc88 Don't register git protocol handler till after git commands are registered (#160857) 2022-09-14 19:23:38 +02:00
Joyce Er
d337885984 Route user to download missing git (#159505)
* Factor out captured variables that are not reused outside findGit callback

* Always register git protocol handler

* Notify the user when cloning without git installed

* Actually notify the user when cloning without git installed

Errors when invoking a command don't seem to get thrown in the extension host

* Add output channel logging

* Revert "Factor out captured variables that are not reused outside findGit callback"

This reverts commit df005bdda5.
2022-09-02 16:31:17 +02:00
Joyce Er
fa4ff1519d Implement and adopt edit session identifier API proposal (#157733)
* Add canonical workspace identifier proposed API

* Use canonical id to store and resume edit sessions

* Add git extension workspace identity provider

* Fix warning incorrectly showing up

* Make auto resume behavior opt in

* * Create a separate service
* Accept WorkspaceFolder instead of URI
* Return string instead of object

* Make edit session restores resilient to provider registration races

* Introduce an activation event
* Activate contributing extension before using provider

* `CanonicalWorkspaceIdentity` -> `EditSessionIdentity`

* Show progress while resuming edit session

* Store edit session even if extension will take care of opening target workspace

* Address most of PR feedback

* `IEditSessionsWorkbenchService` -> `IEditSessionsStorageService`

* Unregister provider in renderer

* Split out proposal into new `editSessionIdentityProvider.d.ts`

* Fix bad merge

* Always show progress in window

* Convert URI schemes
2022-08-19 08:01:43 -07:00
Ladislau Szomoru
c7c0acd2ce Git - Commit action button extension api (#154555) 2022-07-12 17:06:16 +02:00
Ladislau Szomoru
88731bf6d6 Git - enable using the editor as the git commit input (#152158) 2022-06-16 16:27:35 +02:00
Ladislau Szomoru
6f5fc17622 Git - use editor as commit message input (#151491) 2022-06-08 15:45:27 +02:00
Ladislau Szomoru
4bd12af7f6 Git log level polish (#151095) 2022-06-02 09:10:18 -04:00
Ladislau Szomoru
9bfd3c1d72 Revert "A full editor can be used as git commit message editor (#95266)" (#150487)
This reverts commit 97f8e66d74.
2022-05-26 14:06:23 -07:00
Jonas Dellinger
97f8e66d74 A full editor can be used as git commit message editor (#95266)
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2022-05-25 17:16:10 +02:00
Logan Ramos
3a8b1fe03e More telemetry comments (#150303)
* Add owners to all telemetry events

* More comments

* Add comments to non typescript GDPR annotation

* Another comment
2022-05-24 16:00:55 -07:00
Ladislau Szomoru
42ec698ec9 Git - Add trace level telemetry to repository discovery (#149469)
* Add trace level telemetry to help investigate repository scan issues

* Remove empty line

* Switch back to the localized warning message
2022-05-13 16:31:28 +02:00
Ladislau Szomoru
ce88518440 Git - logging improvements (#148656) 2022-05-05 12:52:26 +00:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Harald Kirschner
a9e136f1f4 New git welcome missing guide (#140293)
New git welcome missing guide & shortening based on feedback
2022-01-24 09:36:55 -08:00
Logan Ramos
c047af40b2 Fix compilation 2022-01-19 16:18:14 -05:00
Ladislau Szomoru
28910095e7 Add statusLimit telemetry 2022-01-18 11:17:50 +01:00
Ladislau Szomoru
f62bfae001 Switch to using aka.ms links 2022-01-11 09:51:51 +01:00
Ladislau Szomoru
452e2c5303 Add timestamp and execution time to Git log 2021-12-09 15:18:38 +01:00
Eric Amodio
5ef5837c58 Improves Git security with untrusted workspaces 2021-07-13 13:04:49 -04:00
Eric Amodio
4fc8dc82f3 Fixes #110496 - use builtin gestures for open/diff 2021-02-05 15:00:47 -05:00
Eric Amodio
6424b09b2c Fixes #111909 - adds user agent to push 2020-12-10 17:02:45 -05:00