This commit is contained in:
Rachel Macfarlane
2020-09-01 17:30:48 -07:00
parent a8ded8458e
commit c7c6c5cde1
3 changed files with 43 additions and 27 deletions

View File

@@ -132,8 +132,12 @@ export class MainThreadAuthenticationProvider extends Disposable {
}
private async registerCommandsAndContextMenuItems(): Promise<void> {
const sessions = await this._proxy.$getSessions(this.id);
sessions.forEach(session => this.registerSession(session));
try {
const sessions = await this._proxy.$getSessions(this.id);
sessions.forEach(session => this.registerSession(session));
} catch (_) {
// Ignore
}
}
private registerSession(session: modes.AuthenticationSession) {