diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 159460737b..a7e999f6af 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -2085,7 +2085,6 @@ export class Cline { this.consecutiveMistakeCount = 0 const absolutePath = path.resolve(cwd, relDirPath) - const clineignorePath = path.join(cwd, ".clineignore") const results = await regexSearchFiles( cwd, absolutePath, diff --git a/src/integrations/misc/extract-text.ts b/src/integrations/misc/extract-text.ts index 168eb6f5a3..67a580af9b 100644 --- a/src/integrations/misc/extract-text.ts +++ b/src/integrations/misc/extract-text.ts @@ -4,11 +4,8 @@ import pdf from "pdf-parse/lib/pdf-parse" import mammoth from "mammoth" import fs from "fs/promises" import { isBinaryFile } from "isbinaryfile" -import { LLMFileAccessController } from "../../services/llm-access-control/LLMFileAccessController" export async function extractTextFromFile(filePath: string): Promise { - // First check if we have permission to access this file - try { await fs.access(filePath) } catch (error) { diff --git a/src/services/llm-access-control/LLMFileAccessController.ts b/src/services/llm-access-control/LLMFileAccessController.ts index 69228751bc..2fa2f882f5 100644 --- a/src/services/llm-access-control/LLMFileAccessController.ts +++ b/src/services/llm-access-control/LLMFileAccessController.ts @@ -16,9 +16,9 @@ export class LLMFileAccessController { private disposables: vscode.Disposable[] = [] /** - * Default patterns that are always ignored for security + * Default patterns that are always ignored */ - private static readonly DEFAULT_PATTERNS = [".clineignore"] // empty for now + private static readonly DEFAULT_PATTERNS = [".clineignore"] constructor(cwd: string) { this.cwd = cwd diff --git a/src/utils/path.ts b/src/utils/path.ts index 90cff1c719..b61eb38bed 100644 --- a/src/utils/path.ts +++ b/src/utils/path.ts @@ -1,6 +1,5 @@ import * as path from "path" import os from "os" -import * as fs from "fs" /* The Node.js 'path' module resolves and normalizes paths differently depending on the platform: