Skip to content

Commit 497597a

Browse files
committed
hot reload for all block types
1 parent d427451 commit 497597a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/core.ts

Lines changed: 6 additions & 3 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 {
@@ -893,8 +893,11 @@ export class Core {
893893
uri.endsWith(SYSTEM_PROMPT_DOT_FILE) ||
894894
(uri.includes(".continue") && uri.endsWith(".yaml")) ||
895895
uri.endsWith(RULES_MARKDOWN_FILENAME) ||
896-
uri.includes(".continue/rules") ||
897-
uri.includes(".continue\\rules")
896+
BLOCK_TYPES.some(
897+
(blockType) =>
898+
uri.includes(`.continue/${blockType}`) ||
899+
uri.includes(`.continue\\${blockType}`),
900+
)
898901
) {
899902
await this.configHandler.reloadConfig();
900903
} else if (

0 commit comments

Comments
 (0)