Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/config/markdown/loadMarkdownRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
markdownToRule,
} from "@continuedev/config-yaml";
import { IDE, RuleWithSource } from "../..";
import { PROMPTS_DIR_NAME, RULES_DIR_NAME } from "../../promptFiles";
import { RULES_DIR_NAME } from "../../promptFiles";
import { joinPathsToUri } from "../../util/uri";
import { getAllDotContinueDefinitionFiles } from "../loadLocalAssistants";

Expand Down Expand Up @@ -54,8 +54,8 @@ export async function loadMarkdownRules(ide: IDE): Promise<{
}
}

// Load markdown files from both .continue/rules and .continue/prompts
const dirsToCheck = [RULES_DIR_NAME, PROMPTS_DIR_NAME];
// Load markdown files from both .continue/rules
const dirsToCheck = [RULES_DIR_NAME];

for (const dirName of dirsToCheck) {
try {
Expand Down
7 changes: 4 additions & 3 deletions core/promptFiles/getPromptFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from "path";
import {
DEFAULT_PROMPTS_FOLDER_V1,
DEFAULT_PROMPTS_FOLDER_V2,
DEFAULT_RULES_FOLDER,
RULES_DIR_NAME,
} from ".";
import { IDE } from "..";
Expand All @@ -24,7 +23,9 @@ export async function getPromptFilesFromDir(
const uris = await walkDir(dir, ide, {
source: "get dir prompt files",
});
const promptFilePaths = uris.filter((p) => p.endsWith(".prompt"));
const promptFilePaths = uris.filter(
(p) => p.endsWith(".prompt") || p.endsWith(".md"),
);
const results = promptFilePaths.map(async (uri) => {
const content = await ide.readFile(uri); // make a try catch
return { path: uri, content };
Expand All @@ -44,7 +45,7 @@ export async function getAllPromptFiles(
const workspaceDirs = await ide.getWorkspaceDirs();
let promptFiles: { path: string; content: string }[] = [];

let dirsToCheck = [DEFAULT_PROMPTS_FOLDER_V2, DEFAULT_RULES_FOLDER];
let dirsToCheck = [DEFAULT_PROMPTS_FOLDER_V2];
if (checkV1DefaultFolder) {
dirsToCheck.push(DEFAULT_PROMPTS_FOLDER_V1);
}
Expand Down
Loading