Make added, removed, changed, optional in auth session change event, fixes #117469

This commit is contained in:
Rachel Macfarlane
2021-02-24 14:16:47 -08:00
parent 2852916b59
commit 7f481d2fcc
2 changed files with 8 additions and 4 deletions

View File

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