diff --git a/packages/vscode/src/chatparticipant.ts b/packages/vscode/src/chatparticipant.ts index 58ed8c486..b1d4725e1 100644 --- a/packages/vscode/src/chatparticipant.ts +++ b/packages/vscode/src/chatparticipant.ts @@ -64,7 +64,10 @@ export async function activateChatParticipant(state: ExtensionState) { md( state.project.templates .filter((s) => !s.system && !s.unlisted) - .map((s) => `- \`${s.id}\`: ${s.title}`) + .map( + (s) => + `- [${[s.id]}](${vscode.workspace.asRelativePath(s.filename)}): ${s.title}` + ) .join("\n") ) if (command === "list") { diff --git a/packages/vscode/src/markdowndocumentprovider.ts b/packages/vscode/src/markdowndocumentprovider.ts index a318c36c8..89139cad6 100644 --- a/packages/vscode/src/markdowndocumentprovider.ts +++ b/packages/vscode/src/markdowndocumentprovider.ts @@ -15,8 +15,8 @@ import { CACHE_AIREQUEST_TRACE_PREFIX, BUILTIN_PREFIX, GENAI_ANY_REGEX, - GENAI_JS_EXT, CACHE_AIREQUEST_TEXT_PREFIX, + GENAI_MJS_EXT, } from "../../core/src/constants" import { defaultPrompts } from "../../core/src/default_prompts" import { extractFenced, renderFencedVariables } from "../../core/src/fence" @@ -212,7 +212,7 @@ export function infoUri(path: string) { export function builtinPromptUri(id: string) { return vscode.Uri.from({ scheme: SCHEME, - path: BUILTIN_PREFIX + id + GENAI_JS_EXT, + path: BUILTIN_PREFIX + id + GENAI_MJS_EXT, }) }