.continuerules

This commit is contained in:
Nate 2024-11-13 16:56:56 -08:00
parent 7105be0bee
commit 1e98e366fc
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import { IDE } from "..";
export const SYSTEM_PROMPT_DOT_FILE = ".instructions";
export const SYSTEM_PROMPT_DOT_FILE = ".continuerules";
export async function getSystemPromptDotFile(ide: IDE): Promise<string | null> {
const dirs = await ide.getWorkspaceDirs();

View file

@ -37,6 +37,7 @@ import { VsCodeIde } from "../VsCodeIde";
import { VsCodeMessenger } from "./VsCodeMessenger";
import { SYSTEM_PROMPT_DOT_FILE } from "core/config/getSystemPromptDotFile";
import type { VsCodeWebviewProtocol } from "../webviewProtocol";
export class VsCodeExtension {
@ -285,7 +286,7 @@ export class VsCodeExtension {
if (
filepath.endsWith(".continuerc.json") ||
filepath.endsWith(".prompt") ||
filepath.endsWith(".instructions")
filepath.endsWith(SYSTEM_PROMPT_DOT_FILE)
) {
this.configHandler.reloadConfig();
} else if (