瀏覽代碼

Adds more logging

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

+ 3
- 0
src/premium/subscription/subscriptionService.ts 查看文件

@ -353,6 +353,7 @@ export class SubscriptionService implements Disposable {
}
}
@debug<SubscriptionService['checkInAndValidate']>({ args: { 0: s => s?.account.label } })
private async checkInAndValidate(session: AuthenticationSession): Promise<void> {
try {
const checkInData = {
@ -460,6 +461,7 @@ export class SubscriptionService implements Disposable {
private _session: AuthenticationSession | null | undefined;
@gate()
@debug()
private async ensureSession(createIfNeeded: boolean): Promise<AuthenticationSession | undefined> {
if (this._sessionPromise != null && this._session === undefined) {
this._session = await this._sessionPromise;
@ -484,6 +486,7 @@ export class SubscriptionService implements Disposable {
return this._session ?? undefined;
}
@debug()
private async getOrCreateSession(createIfNeeded: boolean): Promise<AuthenticationSession | null> {
let session: AuthenticationSession | null | undefined;

Loading…
取消
儲存