From 19d16b6fb373268797e931a845f322f2def0ba04 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 22 Feb 2022 17:55:03 -0500 Subject: [PATCH] Adds subscription etag to events --- src/premium/subscription/subscriptionService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/premium/subscription/subscriptionService.ts b/src/premium/subscription/subscriptionService.ts index 5a9653f..c30b331 100644 --- a/src/premium/subscription/subscriptionService.ts +++ b/src/premium/subscription/subscriptionService.ts @@ -52,6 +52,7 @@ const userAgent = 'Visual-Studio-Code-GitLens'; export interface SubscriptionChangeEvent { readonly current: Subscription; readonly previous: Subscription; + readonly etag: number; } export class SubscriptionService implements Disposable { @@ -625,7 +626,7 @@ export class SubscriptionService implements Disposable { this.updateContext(); if (!silent && previous != null) { - this._onDidChange.fire({ current: subscription, previous: previous }); + this._onDidChange.fire({ current: subscription, previous: previous, etag: this._etag }); } }