Skip to content

Commit

Permalink
feat: update link format and file extension references ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Nov 21, 2024
1 parent b30814d commit be6a3d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/vscode/src/chatparticipant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode/src/markdowndocumentprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
})
}

Expand Down

0 comments on commit be6a3d1

Please sign in to comment.