From 14a276e4a0ce88251d5df1dbe1dc022fe979f595 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Thu, 1 May 2025 04:04:10 -0700 Subject: [PATCH] flatten settings --- .voidrules | 3 ++- .../contrib/void/browser/editCodeService.ts | 2 +- .../react/src/sidebar-tsx/SidebarChat.tsx | 2 +- .../react/src/void-settings-tsx/Settings.tsx | 19 +++++++------------ 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.voidrules b/.voidrules index c06e70b4..08826ef2 100644 --- a/.voidrules +++ b/.voidrules @@ -2,4 +2,5 @@ This is a fork of the VSCode repo called Void. Most code we care about lives in src/vs/workbench/contrib/void. -You may sometimes need to explore the full repo to find relevant parts of code. +You may often need to explore the full repo to find relevant parts of code. +Look for services, and built-in functions that you might need to use to solve the problem. \ No newline at end of file diff --git a/src/vs/workbench/contrib/void/browser/editCodeService.ts b/src/vs/workbench/contrib/void/browser/editCodeService.ts index a106e601..f099fa25 100644 --- a/src/vs/workbench/contrib/void/browser/editCodeService.ts +++ b/src/vs/workbench/contrib/void/browser/editCodeService.ts @@ -1563,7 +1563,7 @@ class EditCodeService extends Disposable implements IEditCodeService { const descStr = str === `Not found` ? `The edit was not applied. The text in ORIGINAL must EXACTLY match lines of code in the file, but there was no match for:\n${problematicCode}. Ensure you have the latest version of the file, and ensure the ORIGINAL code matches a code excerpt exactly.` : str === `Not unique` ? - `The edit was not applied. The text in ORIGINAL must be unique, but the following ORIGINAL code appears multiple times in the file:\n${problematicCode}. Ensure you have the latest version of the file, and ensure the ORIGINAL code is unique.` + `The edit was not applied. The text in ORIGINAL must be unique in the file being edited, but the following ORIGINAL code appears multiple times in the file:\n${problematicCode}. Ensure you have the latest version of the file, and ensure the ORIGINAL code is unique.` : str === 'Has overlap' ? `The edit was not applied. The text in the ORIGINAL blocks must not overlap, but the following ORIGINAL code had overlap with another ORIGINAL string:\n${problematicCode}. Ensure you have the latest version of the file, and ensure the ORIGINAL code blocks do not overlap.` : `` diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index 8733e140..3d7a7348 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -722,7 +722,7 @@ const ToolHeaderWrapper = ({ return (
{/* header */} -
+
{/* left */}
{

Feature Options

- {/* L1 */} -
+
{/* FIM */} -
+

{displayInfoOfFeatureName('Autocomplete')}

-
+
Experimental.{' '} @@ -1057,7 +1056,7 @@ export const Settings = () => {

{displayInfoOfFeatureName('Apply')}

-
Settings that control the behavior of the Apply button.
+
Settings that control the behavior of the Apply button.
{/* Sync to Chat Switch */} @@ -1087,18 +1086,14 @@ export const Settings = () => {
-
- {/* L2 */} - -
{/* Tools Section */} -
+

Tools

-
{`Tools are functions that LLMs can call. Some tools require user approval.`}
+
{`Tools are functions that LLMs can call. Some tools require user approval.`}
{/* Auto Accept Switch */} @@ -1130,7 +1125,7 @@ export const Settings = () => {

Editor

-
{`Settings that control the visibility of Void suggestions in the code editor.`}
+
{`Settings that control the visibility of Void suggestions in the code editor.`}
{/* Auto Accept Switch */}