Skip to content

[Question]: How to enable vitepress support with LSP alone. #4655

Answered by johnsoncodehk
RayGuo-ergou asked this question in Q&A
Discussion options

You must be logged in to vote

Setting vue.server.includeLanguages ​​in VSCode has two purposes:

  1. Add markdown to the languages ​​of TS plugin:
    `e.name==='typescript-vue-plugin-bundle'?[${config.server.includeLanguages.map(lang => `"${lang}"`).join(',')}]`,
  2. Add markdown to LanguageClientOptions.documentSelector of LanguageClient:
    const selectors = config.server.includeLanguages;
    client = createLc(
    'vue',
    'Vue',
    selectors,

If you only use LSP (without hybrid mode), step 1 is not required.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RayGuo-ergou
Comment options

@johnsoncodehk
Comment options

@RayGuo-ergou
Comment options

Answer selected by RayGuo-ergou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants