This commit is contained in:
Evan 2025-02-06 18:49:11 -08:00
parent 6cfdd4fb90
commit fc60f6e55e
4 changed files with 2 additions and 7 deletions

View file

@ -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,

View file

@ -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<string> {
// First check if we have permission to access this file
try {
await fs.access(filePath)
} catch (error) {

View file

@ -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

View file

@ -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: