Skip to content

Commit 0aa508d

Browse files
Merge pull request #6230 from continuedev/nate/fix-rules-directory-watch
hot reloading for .continue/rules files
2 parents bb0490a + 497597a commit 0aa508d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

core/core.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
type IDE,
4848
} from ".";
4949

50-
import { ConfigYaml } from "@continuedev/config-yaml";
50+
import { BLOCK_TYPES, ConfigYaml } from "@continuedev/config-yaml";
5151
import { getDiffFn, GitDiffCache } from "./autocomplete/snippets/gitDiffCache";
5252
import { isLocalDefinitionFile } from "./config/loadLocalAssistants";
5353
import {
@@ -892,7 +892,12 @@ export class Core {
892892
uri.endsWith(".prompt") ||
893893
uri.endsWith(SYSTEM_PROMPT_DOT_FILE) ||
894894
(uri.includes(".continue") && uri.endsWith(".yaml")) ||
895-
uri.endsWith(RULES_MARKDOWN_FILENAME)
895+
uri.endsWith(RULES_MARKDOWN_FILENAME) ||
896+
BLOCK_TYPES.some(
897+
(blockType) =>
898+
uri.includes(`.continue/${blockType}`) ||
899+
uri.includes(`.continue\\${blockType}`),
900+
)
896901
) {
897902
await this.configHandler.reloadConfig();
898903
} else if (

0 commit comments

Comments
 (0)