From 9a5580d32e0b9bd4266cdd675d9f3b80fa9c5cf2 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Thu, 5 Jun 2025 16:14:40 -0700 Subject: [PATCH] sync SCM --- .../workbench/contrib/void/common/voidSettingsService.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/void/common/voidSettingsService.ts b/src/vs/workbench/contrib/void/common/voidSettingsService.ts index 836fd687..dbd3cf3f 100644 --- a/src/vs/workbench/contrib/void/common/voidSettingsService.ts +++ b/src/vs/workbench/contrib/void/common/voidSettingsService.ts @@ -400,7 +400,6 @@ class VoidSettingsService extends Disposable implements IVoidSettingsService { private _onUpdate_syncApplyToChat() { // if sync is turned on, sync (call this whenever Chat model or !!sync changes) this.setModelSelectionOfFeature('Apply', deepClone(this.state.modelSelectionOfFeature['Chat'])) - } private _onUpdate_syncSCMToChat() { @@ -421,7 +420,8 @@ class VoidSettingsService extends Disposable implements IVoidSettingsService { // hooks if (this.state.globalSettings.syncApplyToChat) this._onUpdate_syncApplyToChat() - this._onUpdate_syncSCMToChat() + if (this.state.globalSettings.syncSCMToChat) this._onUpdate_syncSCMToChat() + } @@ -441,7 +441,8 @@ class VoidSettingsService extends Disposable implements IVoidSettingsService { // hooks if (featureName === 'Chat') { - if (this.state.globalSettings.syncApplyToChat) this._onUpdate_syncApplyToChat() + // When Chat model changes, update synced features + this._onUpdate_syncApplyToChat() this._onUpdate_syncSCMToChat() } }