diff --git a/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.ts b/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.ts index b056dbf64a279..1bb5eb3373700 100644 --- a/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.ts +++ b/src/vs/workbench/contrib/editSessions/browser/editSessionsStorageService.ts @@ -455,6 +455,9 @@ export class EditSessionsWorkbenchService extends Disposable implements IEditSes } private registerSignInAction() { + if (!this.serverConfiguration?.url) { + return; + } const that = this; const id = 'workbench.editSessions.actions.signIn'; const when = ContextKeyExpr.and(ContextKeyExpr.equals(EDIT_SESSIONS_PENDING_KEY, false), ContextKeyExpr.equals(EDIT_SESSIONS_SIGNED_IN_KEY, false));