Merge pull request #6230 from continuedev/nate/fix-rules-directory-watch
hot reloading for .continue/rules files
This commit is contained in:
commit
0aa508d3be
1 changed files with 7 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ import {
|
|||
type IDE,
|
||||
} from ".";
|
||||
|
||||
import { ConfigYaml } from "@continuedev/config-yaml";
|
||||
import { BLOCK_TYPES, ConfigYaml } from "@continuedev/config-yaml";
|
||||
import { getDiffFn, GitDiffCache } from "./autocomplete/snippets/gitDiffCache";
|
||||
import { isLocalDefinitionFile } from "./config/loadLocalAssistants";
|
||||
import {
|
||||
|
|
@ -892,7 +892,12 @@ export class Core {
|
|||
uri.endsWith(".prompt") ||
|
||||
uri.endsWith(SYSTEM_PROMPT_DOT_FILE) ||
|
||||
(uri.includes(".continue") && uri.endsWith(".yaml")) ||
|
||||
uri.endsWith(RULES_MARKDOWN_FILENAME)
|
||||
uri.endsWith(RULES_MARKDOWN_FILENAME) ||
|
||||
BLOCK_TYPES.some(
|
||||
(blockType) =>
|
||||
uri.includes(`.continue/${blockType}`) ||
|
||||
uri.includes(`.continue\\${blockType}`),
|
||||
)
|
||||
) {
|
||||
await this.configHandler.reloadConfig();
|
||||
} else if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue