diff --git a/.voidrules b/.voidrules index 8cded830..7bac91a3 100644 --- a/.voidrules +++ b/.voidrules @@ -3,6 +3,6 @@ This is a fork of the VSCode repo called Void. Most code we care about lives in src/vs/workbench/contrib/void. 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. +Look for services and built-in functions that you might need to use to solve the problem. NEVER lazily cast to 'any' in typescript. Find the correct type to apply and use it. diff --git a/product.json b/product.json index f8b447dc..e8dc4c7f 100644 --- a/product.json +++ b/product.json @@ -38,6 +38,7 @@ "builtInExtensions": [], "linkProtectionTrustedDomains": [ "https://voideditor.com", - "https://voideditor.dev" + "https://voideditor.dev", + "https://github.com/voideditor/void" ] } diff --git a/src/vs/workbench/contrib/void/browser/editCodeService.ts b/src/vs/workbench/contrib/void/browser/editCodeService.ts index bb189b2e..bbbc5132 100644 --- a/src/vs/workbench/contrib/void/browser/editCodeService.ts +++ b/src/vs/workbench/contrib/void/browser/editCodeService.ts @@ -1642,7 +1642,6 @@ class EditCodeService extends Disposable implements IEditCodeService { const { origStart, origEnd, block } = replacements[i] newCode = newCode.slice(0, origStart) + block.final + newCode.slice(origEnd + 1, Infinity) } - console.log('REPLACEMENTS', replacements, newCode) this._writeURIText(uri, newCode, 'wholeFileRange', diff --git a/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx b/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx index d91eee88..0053f343 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/util/inputs.tsx @@ -160,7 +160,7 @@ export function getRelativeWorkspacePath(accessor: ReturnType - + Override Model Defaults @@ -356,7 +356,7 @@ const SimpleModelSettingsDialog = ({ {/* Informational link */}
- +
@@ -545,7 +545,7 @@ export const ModelDump = () => { : undefined - + const hasOverrides = !!settingsState.overridesOfModel?.[providerName]?.[modelName] return
{
{/* right part is anything that fits */} -
+
- {/* Advanced Settings button - only for custom or locally detected models */} -
- -
+ {/* Advanced Settings button (gear). Hide entirely when provider/model disabled. */} + {disabled ? null : ( +
+ +
+ )} {/* Blue star */} {detailAboutModel} @@ -733,8 +735,8 @@ export const SettingsForProvider = ({ providerName, showProviderTitle, showProvi {showProviderSuggestions && needsModel ? providerName === 'ollama' ? - - : + + : : null}