mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
cleanup
This commit is contained in:
parent
6cfdd4fb90
commit
fc60f6e55e
4 changed files with 2 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue