mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Make scopes parameter optional to getSessions and remove getAllSessions
This commit is contained in:
@@ -89,14 +89,10 @@ export class MainThreadAuthenticationProvider extends Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
async getSessions(scopes: string[]) {
|
||||
async getSessions(scopes?: string[]) {
|
||||
return this._proxy.$getSessions(this.id, scopes);
|
||||
}
|
||||
|
||||
async getAllSessions(): Promise<ReadonlyArray<modes.AuthenticationSession>> {
|
||||
return this._proxy.$getAllSessions(this.id);
|
||||
}
|
||||
|
||||
createSession(scopes: string[]): Promise<modes.AuthenticationSession> {
|
||||
return this._proxy.$createSession(this.id, scopes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user