瀏覽代碼

Adds subscription etag to events

main
Eric Amodio 2 年之前
父節點
當前提交
19d16b6fb3
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/premium/subscription/subscriptionService.ts

+ 2
- 1
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 });
}
}

Loading…
取消
儲存