Skip to content

Commit

Permalink
fix(vscode): language server not activated when opening markdown file
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 24, 2024
1 parent 804f472 commit 307ef4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/vscode/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function activate(context: vscode.ExtensionContext, createLc: Creat
function tryActivate() {
if (
vscode.window.visibleTextEditors.some(editor => editor.document.languageId === 'vue')
|| (config.server.vitePress.supportMdFile && vscode.window.visibleTextEditors.some(editor => editor.document.languageId === 'vue'))
|| (config.server.vitePress.supportMdFile && vscode.window.visibleTextEditors.some(editor => editor.document.languageId === 'markdown'))
|| (config.server.petiteVue.supportHtmlFile && vscode.window.visibleTextEditors.some(editor => editor.document.languageId === 'html'))
) {
doActivate(context, createLc);
Expand Down

0 comments on commit 307ef4c

Please sign in to comment.