fix: clean up VSCode settings duplication and hide irrelevant sections
Remove mermaidRendering, userMessageRendering, stickyUserHeader from Appearance in VSCode (already in Chat) Hide Navigation settings (navRail, terminalQuickKeys) in VSCode Appearance Hide Shortcuts section entirely in VSCode
This commit is contained in:
@@ -103,7 +103,7 @@ const ShortcutsSectionContent: React.FC = () => {
|
||||
// Visual section: Theme Mode, Font Size, Spacing, Corner Radius, Input Bar Offset (mobile), Nav Rail
|
||||
const VisualSectionContent: React.FC = () => {
|
||||
const isVSCode = isVSCodeRuntime();
|
||||
const visibleSettings: Array<'theme' | 'pwaInstallName' | 'fontSize' | 'terminalFontSize' | 'spacing' | 'cornerRadius' | 'inputBarOffset' | 'terminalQuickKeys' | 'navRail' | 'mermaidRendering' | 'userMessageRendering' | 'stickyUserHeader'> = [
|
||||
return <OpenChamberVisualSettings visibleSettings={[
|
||||
'theme',
|
||||
'pwaInstallName',
|
||||
'fontSize',
|
||||
@@ -111,15 +111,8 @@ const VisualSectionContent: React.FC = () => {
|
||||
'spacing',
|
||||
'cornerRadius',
|
||||
'inputBarOffset',
|
||||
'terminalQuickKeys',
|
||||
'navRail',
|
||||
];
|
||||
|
||||
if (isVSCode) {
|
||||
visibleSettings.push('mermaidRendering', 'userMessageRendering', 'stickyUserHeader');
|
||||
}
|
||||
|
||||
return <OpenChamberVisualSettings visibleSettings={visibleSettings} />;
|
||||
...(!isVSCode ? ['terminalQuickKeys' as const, 'navRail' as const] : []),
|
||||
]} />;
|
||||
};
|
||||
|
||||
// Chat section: Default Tool Output, User message rendering, Diff layout, Mobile status bar, Show reasoning traces, Queue mode, Persist draft
|
||||
|
||||
Reference in New Issue
Block a user