From cee6dcc524960edd0899636d95d2fc769ba256b2 Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Thu, 17 Apr 2025 18:40:23 -0700 Subject: [PATCH] rename .voidinstructions to .voidrules ... --- .../void/browser/convertToLLMMessageService.ts | 18 +++++++++--------- .../convertToLLMMessageWorkbenchContrib.ts | 4 ++-- .../react/src/void-settings-tsx/Settings.tsx | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/convertToLLMMessageService.ts b/src/vs/workbench/contrib/void/browser/convertToLLMMessageService.ts index 19606415..ee6f8793 100644 --- a/src/vs/workbench/contrib/void/browser/convertToLLMMessageService.ts +++ b/src/vs/workbench/contrib/void/browser/convertToLLMMessageService.ts @@ -438,27 +438,27 @@ class ConvertToLLMMessageService extends Disposable implements IConvertToLLMMess super() } - // Read .voidinstructions files from workspace folders - private _getVoidInstructionsFileContents(): string { + // Read .voidrules files from workspace folders + private _getVoidRulesFileContents(): string { const workspaceFolders = this.workspaceContextService.getWorkspace().folders; - let voidInstructions = ''; + let voidRules = ''; for (const folder of workspaceFolders) { - const uri = URI.joinPath(folder.uri, '.voidinstructions') + const uri = URI.joinPath(folder.uri, '.voidrules') const { model } = this.voidModelService.getModel(uri) if (!model) continue - voidInstructions += model.getValue() + '\n\n'; + voidRules += model.getValue() + '\n\n'; } - return voidInstructions.trim(); + return voidRules.trim(); } - // Get combined AI instructions from settings and .voidinstructions files + // Get combined AI instructions from settings and .voidrules files private _getCombinedAIInstructions(): string { const globalAIInstructions = this.voidSettingsService.state.globalSettings.aiInstructions; - const voidInstructionsFileContent = this._getVoidInstructionsFileContents(); + const voidRulesFileContent = this._getVoidRulesFileContents(); const ans: string[] = [] if (globalAIInstructions) ans.push(globalAIInstructions) - if (voidInstructionsFileContent) ans.push(voidInstructionsFileContent) + if (voidRulesFileContent) ans.push(voidRulesFileContent) return ans.join('\n\n') } diff --git a/src/vs/workbench/contrib/void/browser/convertToLLMMessageWorkbenchContrib.ts b/src/vs/workbench/contrib/void/browser/convertToLLMMessageWorkbenchContrib.ts index 9e65f9da..f77dde38 100644 --- a/src/vs/workbench/contrib/void/browser/convertToLLMMessageWorkbenchContrib.ts +++ b/src/vs/workbench/contrib/void/browser/convertToLLMMessageWorkbenchContrib.ts @@ -21,8 +21,8 @@ class ConvertContribWorkbenchContribution extends Disposable implements IWorkben const initializeURI = (uri: URI) => { this.workspaceContext.getWorkspace() - const voidInstrsURI = URI.joinPath(uri, '.voidinstructions') - this.voidModelService.initializeModel(voidInstrsURI) + const voidRulesURI = URI.joinPath(uri, '.voidrules') + this.voidModelService.initializeModel(voidRulesURI) } // call 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 2c386760..bb8ab757 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 @@ -1025,11 +1025,11 @@ export const Settings = () => {

AI Instructions

- -

+