-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markdown files don't have IntelliSense out of the box #4290
Comments
That support is bit broken post v1.8 of volar. We still have to test it out to make sure it works. Last I checked the source-line mapping was messed up. |
Ah, huh maybe. Have you tried on the latest version? Did you see any issues or was it working fine? Check import completion once too 👀 I'm still on 2.0.26. If it's working fine we can add it to the docs. Maybe a new page "Typescript Support"? |
I did a quick test and looks good to me I'm not sure about the Typescript Support page since the IntelliSense should work on both typescript and javascript scripts via We can add an IntelliSense support section at the end of the Using Vue in Markdown page. |
ok yeah sure 👍 |
I'm going to create the PR but it will be my first contribution, there is something I must take into consideration besides the contributing guidelines? |
Ah, no. I'll adjust it if necessary. Just update the English docs or the Spanish ones if you're familiar. |
Describe the bug
Markdown files in VitePress projects don't have IntelliSense support for
Vue features
by default when using the officialVue Volar
plugin in VS Code.Reproduction
vitepress
project using the setup wizardInstall the last version of the official
vs code - vue plugin
https://marketplace.visualstudio.com/items?itemName=Vue.volar
Use any
Vue
features inside a markdown filehttps://vitepress.dev/guide/using-vue#using-vue-in-markdown
index.md
Expected behavior
We can expect
Vitepress
andVolar
to work seamlessly and provide IntelliSense feature out of the box on.md
files, but according to this vue language tool merged PR, to achieve this, we have to follow a few steps.VitePress Support
.md
to thetsconfig
include option:.md
to thetsconfig
vueCompilerOptions.vitePressExtensions
option:markdown
to the VSCodevue.server.includeLanguages
setting:These steps aren't mentioned on the
vitepress
documentation, I'd like to add those steps to the documentation but wanna be sure first if this has been taken into considerationSystem Info
Additional context
There is an open discussion at
vuejs/eslint-plugin-vue
repository to Add support for recognizing Vue components in .md files with the idea of improving the developer experience using VitepressValidations
The text was updated successfully, but these errors were encountered: