File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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" ;
5151import { getDiffFn , GitDiffCache } from "./autocomplete/snippets/gitDiffCache" ;
5252import { isLocalDefinitionFile } from "./config/loadLocalAssistants" ;
5353import {
@@ -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 (
You can’t perform that action at this time.
0 commit comments