From f4c1fc8917e6e18fb575004bfa0c96c7f401235a Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Thu, 9 Jan 2025 03:37:04 -0800 Subject: [PATCH] settings style updates --- .../react/src/void-settings-tsx/Settings.tsx | 101 +++++++++++++----- 1 file changed, 74 insertions(+), 27 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx index a0f15e42..7acdf6ff 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx @@ -207,14 +207,14 @@ export const ModelDump = () => { `} > {/* left part is width:full */} -
- {isNewProviderName ? displayInfoOfProviderName(providerName).title : ''} - {modelName} +
+ {isNewProviderName ? displayInfoOfProviderName(providerName).title : ''} + {modelName} {/* {`${modelName} (${providerName})`} */}
{/* right part is anything that fits */} -
- {isAutodetected ? '(detected locally)' : isDefault ? '' : '(custom model)'} +
+ {isAutodetected ? '(detected locally)' : isDefault ? '' : '(custom model)'} { {/*

{`Instructions:`}

*/} {/*

{`Void can access any model that you host locally. We automatically detect your local models by default.`}

*/}

{`Void can access any model that you host locally. We automatically detect your local models by default.`}

-
+
- - + + {/* TODO we should create UI for downloading models without user going into terminal */}
@@ -494,7 +494,7 @@ let transferError: string | null = null try { transferTheseFiles = transferTheseFilesOfOS(os) } catch (e) { transferError = e + '' } -const OneClickSwitch = () => { +const OneClickSwitchButton = () => { const accessor = useAccessor() const fileService = accessor.get('IFileService') @@ -542,28 +542,75 @@ const OneClickSwitch = () => { const GeneralTab = () => { + const accessor = useAccessor() + const commandService = accessor.get('ICommandService') + return <> + + +
+

One-Click Switch

+

{`Transfer your settings from VS Code to Void.`}

+ +
+ + + {/*
+

Rules for AI

+ {`placeholder: "Do not add ;'s. Do not change or delete spacing, formatting, or comments. Respond to queries in French when applicable. "`} +
*/} + + + + +
+

Built-in Settings

+

{`IDE settings, keybindings, and theme customization.`}

+ +
+ { commandService.executeCommand('workbench.action.openSettings') }}> + General Settings + +
+
+ { commandService.executeCommand('workbench.action.openGlobalKeybindings') }}> + Keyboard Settings + +
+
+ { commandService.executeCommand('workbench.action.selectTheme') }}> + Theme Settings + +
+
+ {/*
+

General Settings

+

{`VS Code's built-in settings.`}

+ { commandService.executeCommand('workbench.action.openSettings') }}> + General Settings + +
+ +
+

Keyboard Settings

+

{`Void can access models from Anthropic, OpenAI, OpenRouter, and more.`}

+ { commandService.executeCommand('workbench.action.openGlobalKeybindingsFile') }}> + Keyboard Settings + +
+ + +
+

Theme

+ { commandService.executeCommand('workbench.action.selectTheme') }}> + Theme + +
*/} + + {/* */} - {/* keyboard shortcuts */} -

General Settings

-

{`VS Code's built-in settings.`}

- -

Keyboard Settings

-

{`Void can access models from Anthropic, OpenAI, OpenRouter, and more.`}

- - -

One-click Switch

-

{`Transfer your settings from VS Code into Void.`}

- - - -

Theme

- - -

Rules for AI

- {/* placeholder: "Do not add ;'s. Do not change or delete spacing, formatting, or comments. Respond to queries in French when applicable. " */} }