Copy providers array before freezing in extHostAuthentication

This commit is contained in:
Rachel Macfarlane
2020-07-17 15:38:31 -07:00
parent e2432d9e63
commit a8ee28deb9

View File

@@ -37,7 +37,7 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape {
}
get providers(): ReadonlyArray<vscode.AuthenticationProviderInformation> {
return Object.freeze(this._providers);
return Object.freeze(this._providers.slice());
}
async getSession(requestingExtension: IExtensionDescription, providerId: string, scopes: string[], options: vscode.AuthenticationGetSessionOptions & { createIfNone: true }): Promise<vscode.AuthenticationSession>;