enable markdown language server for prompt files (#252656)

This commit is contained in:
Martin Aeschlimann
2025-06-30 23:19:00 +02:00
committed by GitHub
parent b9558f6405
commit 25a8dd4f0b
3 changed files with 8 additions and 3 deletions

View File

@@ -19,8 +19,10 @@ export const markdownFileExtensions = Object.freeze<string[]>([
'workbook',
]);
export const markdownLanguageIds = ['markdown', 'prompt', 'instructions', 'chatmode'];
export function isMarkdownFile(document: vscode.TextDocument) {
return document.languageId === 'markdown';
return markdownLanguageIds.indexOf(document.languageId) !== -1;
}
export function looksLikeMarkdownPath(resolvedHrefPath: vscode.Uri): boolean {