diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index f8a21314598..326dae840f4 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -12349,17 +12349,17 @@ declare module 'vscode' { /** * The [AuthenticationSession](#AuthenticationSession)s of the [AuthenticationProvider](#AuthentiationProvider) that have been added. */ - readonly added: ReadonlyArray; + readonly added?: ReadonlyArray; /** * The [AuthenticationSession](#AuthenticationSession)s of the [AuthenticationProvider](#AuthentiationProvider) that have been removed. */ - readonly removed: ReadonlyArray; + readonly removed?: ReadonlyArray; /** * The [AuthenticationSession](#AuthenticationSession)s of the [AuthenticationProvider](#AuthentiationProvider) that have been changed. */ - readonly changed: ReadonlyArray; + readonly changed?: ReadonlyArray; } /** diff --git a/src/vs/workbench/api/common/extHostAuthentication.ts b/src/vs/workbench/api/common/extHostAuthentication.ts index ebce2edf567..d32ec2ad1dc 100644 --- a/src/vs/workbench/api/common/extHostAuthentication.ts +++ b/src/vs/workbench/api/common/extHostAuthentication.ts @@ -111,7 +111,11 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape { } const listener = provider.onDidChangeSessions(e => { - this._proxy.$sendDidChangeSessions(id, e); + this._proxy.$sendDidChangeSessions(id, { + added: e.added ?? [], + changed: e.changed ?? [], + removed: e.changed ?? [] + }); }); this._proxy.$registerAuthenticationProvider(id, label, options?.supportsMultipleAccounts ?? false);