Skip to content

Commit

Permalink
.continuerules
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Nov 14, 2024
1 parent 7105be0 commit 1e98e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/config/getSystemPromptDotFile.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
3 changes: 2 additions & 1 deletion extensions/vscode/src/extension/VsCodeExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 1e98e36

Please sign in to comment.