mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
sync scm
This commit is contained in:
parent
12a1014534
commit
31950ae01e
2 changed files with 25 additions and 0 deletions
|
|
@ -1218,9 +1218,32 @@ export const Settings = () => {
|
|||
</div>
|
||||
</ErrorBoundary>
|
||||
|
||||
{/* SCM */}
|
||||
<ErrorBoundary>
|
||||
|
||||
<div className='w-full'>
|
||||
<h4 className={`text-base`}>{displayInfoOfFeatureName('SCM')}</h4>
|
||||
<div className='text-sm italic text-void-fg-3 mt-1'>Settings that control the behavior of Source Control features.</div>
|
||||
|
||||
<div className='my-2'>
|
||||
{/* Sync to Chat Switch */}
|
||||
<div className='flex items-center gap-x-2 my-2'>
|
||||
<VoidSwitch
|
||||
size='xs'
|
||||
value={settingsState.globalSettings.syncSCMToChat}
|
||||
onChange={(newVal) => voidSettingsService.setGlobalSetting('syncSCMToChat', newVal)}
|
||||
/>
|
||||
<span className='text-void-fg-3 text-xs pointer-events-none'>{settingsState.globalSettings.syncSCMToChat ? 'Same as Chat model' : 'Different model'}</span>
|
||||
</div>
|
||||
|
||||
{/* Model Dropdown */}
|
||||
<div className={`my-2 ${settingsState.globalSettings.syncSCMToChat ? 'hidden' : ''}`}>
|
||||
<ModelDropdown featureName={'SCM'} className='text-xs text-void-fg-3 bg-void-bg-1 border border-void-border-1 rounded p-0.5 px-1' />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ErrorBoundary>
|
||||
|
||||
{/* Tools Section */}
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -446,6 +446,7 @@ export type GlobalSettings = {
|
|||
aiInstructions: string;
|
||||
enableAutocomplete: boolean;
|
||||
syncApplyToChat: boolean;
|
||||
syncSCMToChat: boolean;
|
||||
enableFastApply: boolean;
|
||||
chatMode: ChatMode;
|
||||
autoApprove: { [approvalType in ToolApprovalType]?: boolean };
|
||||
|
|
@ -460,6 +461,7 @@ export const defaultGlobalSettings: GlobalSettings = {
|
|||
aiInstructions: '',
|
||||
enableAutocomplete: false,
|
||||
syncApplyToChat: true,
|
||||
syncSCMToChat: true,
|
||||
enableFastApply: true,
|
||||
chatMode: 'agent',
|
||||
autoApprove: {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue