Changesets · Branches · Tags · Compare
| Changeset | d7c7c28e99d9b6fe41b03ee71e2ad7df36b08f6d1bf81d947e3489305f74c3a3 |
|---|---|
| Author | Tomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-06-11 15:09 -07:00 |
| Committer | Tomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-06-11 15:09 -07:00 |
| Parents | f96bfd141fb6 |
1 file changed
modified core/llm/rules/getSystemMessageWithRules.ts +1 −6
| @@ -8,7 +8,6 @@ | ||
| 8 | 8 | import { renderChatMessage } from "../../util/messageContent"; |
| 9 | 9 | import { getCleanUriPath } from "../../util/uri"; |
| 10 | 10 | import { extractPathsFromCodeBlocks } from "../utils/extractPathsFromCodeBlocks"; |
| 11 | -import { RULES_MARKDOWN_FILENAME } from "./constants"; | |
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * Checks if a path matches any of the provided globs |
| @@ -90,11 +89,7 @@ | ||
| 90 | 89 | * Checks if a rule is a root-level rule (.continue directory or no file path) |
| 91 | 90 | */ |
| 92 | 91 | const isRootLevelRule = (rule: RuleWithSource): boolean => { |
| 93 | - return ( | |
| 94 | - !rule.ruleFile || | |
| 95 | - rule.ruleFile.startsWith(".continue/") || | |
| 96 | - rule.ruleFile === `.continue/${RULES_MARKDOWN_FILENAME}` | |
| 97 | - ); | |
| 92 | + return !rule.ruleFile || rule.ruleFile.startsWith(".continue/"); | |
| 98 | 93 | }; |
| 99 | 94 | |
| 100 | 95 | /** |