Browse Source

Adds subscription etag to events

main
Eric Amodio 2 years ago
parent
commit
19d16b6fb3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/premium/subscription/subscriptionService.ts

+ 2
- 1
src/premium/subscription/subscriptionService.ts View File

@ -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 });
}
}

Loading…
Cancel
Save