diff --git a/src/components/chat-view/CustomModeView.tsx b/src/components/chat-view/CustomModeView.tsx index 335475c..bb66226 100644 --- a/src/components/chat-view/CustomModeView.tsx +++ b/src/components/chat-view/CustomModeView.tsx @@ -380,7 +380,6 @@ const CustomModeView = () => { leaf.view instanceof PreviewView && leaf.view.state.title === `${modeName} system prompt` ) if (existingLeaf) { - console.log(existingLeaf) app.workspace.setActiveLeaf(existingLeaf, { focus: true }) } else { app.workspace.getLeaf(true).setViewState({ diff --git a/src/core/prompts/sections/custom-instructions.ts b/src/core/prompts/sections/custom-instructions.ts index af5af27..270b54c 100644 --- a/src/core/prompts/sections/custom-instructions.ts +++ b/src/core/prompts/sections/custom-instructions.ts @@ -35,7 +35,6 @@ export async function addCustomInstructions( mode: string, options: { preferredLanguage?: string } = {}, ): Promise { - console.log("addCustomInstructions this app, ", app) const sections = [] // Load mode-specific rules file if mode is provided diff --git a/src/core/prompts/sections/custom-system-prompt.ts b/src/core/prompts/sections/custom-system-prompt.ts index 0f2935b..837fd76 100644 --- a/src/core/prompts/sections/custom-system-prompt.ts +++ b/src/core/prompts/sections/custom-system-prompt.ts @@ -36,10 +36,7 @@ export function getSystemPromptFilePath(cwd: string, mode: Mode): string { * If the file doesn't exist, returns an empty string */ export async function loadSystemPromptFile(cwd: string, mode: Mode): Promise { - console.log("cwd", cwd) - console.log("mode", mode) const filePath = getSystemPromptFilePath(cwd, mode) - console.log("filePath", filePath) return safeReadFile(filePath) } diff --git a/src/core/prompts/system.ts b/src/core/prompts/system.ts index 8c1ddb4..06433c8 100644 --- a/src/core/prompts/system.ts +++ b/src/core/prompts/system.ts @@ -44,7 +44,6 @@ export class SystemPrompt { } private async ensureDirectory(): Promise { - console.log("this.app, ", this.app) if (!(await this.app.vault.adapter.exists(this.dataDir))) { await this.app.vault.adapter.mkdir(this.dataDir) } @@ -58,7 +57,6 @@ export class SystemPrompt { private async loadSystemPromptFile(mode: Mode): Promise { const fileName = this.getSystemPromptFilePath(mode) const filePath = normalizePath(path.join(this.dataDir, fileName)) - console.log("filePath", filePath) if (!(await this.app.vault.adapter.exists(filePath))) { return "" }