fix: don't register Cloud Changes action if not configured in product.json (#236764)

pull/236767/head
Joyce Er 2024-12-20 14:33:52 -08:00 committed by GitHub
parent 0c51035590
commit 13d2a615cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

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