This commit is contained in:
Saoud Rizwan 2024-12-18 11:06:48 -08:00
parent d577ec4ba1
commit eca8cc61ac

View file

@ -795,7 +795,7 @@ export class Cline {
try {
const ruleFileContent = (await fs.readFile(clineRulesFilePath, "utf8")).trim()
if (ruleFileContent) {
clineRulesFileInstructions = `# .clinerules\n\nThe following instructions are provided by a root-level .clinerules file where the user has specified instructions for this working directory (${cwd.toPosix()})\n\n${ruleFileContent}`
clineRulesFileInstructions = `# .clinerules\n\nThe following is provided by a root-level .clinerules file where the user has specified instructions for this working directory (${cwd.toPosix()})\n\n${ruleFileContent}`
}
} catch {
console.error(`Failed to read .clinerules file at ${clineRulesFilePath}`)