Skip to content

Commit be6a3d1

Browse files
committed
feat: update link format and file extension references ✨
1 parent b30814d commit be6a3d1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/vscode/src/chatparticipant.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export async function activateChatParticipant(state: ExtensionState) {
6464
md(
6565
state.project.templates
6666
.filter((s) => !s.system && !s.unlisted)
67-
.map((s) => `- \`${s.id}\`: ${s.title}`)
67+
.map(
68+
(s) =>
69+
`- [${[s.id]}](${vscode.workspace.asRelativePath(s.filename)}): ${s.title}`
70+
)
6871
.join("\n")
6972
)
7073
if (command === "list") {

packages/vscode/src/markdowndocumentprovider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import {
1515
CACHE_AIREQUEST_TRACE_PREFIX,
1616
BUILTIN_PREFIX,
1717
GENAI_ANY_REGEX,
18-
GENAI_JS_EXT,
1918
CACHE_AIREQUEST_TEXT_PREFIX,
19+
GENAI_MJS_EXT,
2020
} from "../../core/src/constants"
2121
import { defaultPrompts } from "../../core/src/default_prompts"
2222
import { extractFenced, renderFencedVariables } from "../../core/src/fence"
@@ -212,7 +212,7 @@ export function infoUri(path: string) {
212212
export function builtinPromptUri(id: string) {
213213
return vscode.Uri.from({
214214
scheme: SCHEME,
215-
path: BUILTIN_PREFIX + id + GENAI_JS_EXT,
215+
path: BUILTIN_PREFIX + id + GENAI_MJS_EXT,
216216
})
217217
}
218218

0 commit comments

Comments
 (0)