mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Remove unnecessary file parsing
This commit is contained in:
parent
f9e310f338
commit
4f2d5b15bf
1 changed files with 1 additions and 6 deletions
|
|
@ -76,12 +76,7 @@ export class ClineIgnoreController {
|
|||
// Reset ignore instance to prevent duplicate patterns
|
||||
this.resetToDefaultPatterns()
|
||||
const content = await fs.readFile(ignorePath, "utf8")
|
||||
const customPatterns = content
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
.filter((line) => line && !line.startsWith("#"))
|
||||
|
||||
this.ignoreInstance.add(customPatterns)
|
||||
this.ignoreInstance.add(content)
|
||||
}
|
||||
} catch (error) {
|
||||
// Continue with default patterns
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue