-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Ignore frontmatter in .svx
files
#1814
Comments
This is tricky. By marking |
Good idea. I have "[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
// "editor.defaultFormatter": "svelte.svelte-vscode"
}, I'll work with this for a while and see how well it does. |
Even with "[svelte]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// "editor.defaultFormatter": "svelte.svelte-vscode"
},
"devDependencies": {
"@sveltejs/adapter-static": "1.0.1",
"@sveltejs/kit": "1.0.7",
"@sveltejs/package": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@vitest/coverage-c8": "^0.27.0",
"devalue": "^4.2.0",
"eslint": "^8.31.0",
"eslint-plugin-svelte3": "^4.0.0",
"jsdom": "^21.0.0",
"mdsvex": "^0.10.6",
"mdsvexamples": "^0.3.3",
"prettier": "^2.8.2",
"prettier-plugin-svelte": "^2.9.0",
"svelte": "^3.55.0",
"svelte-check": "^3.0.1",
"svelte-preprocess": "^5.0.0",
"svelte2tsx": "^0.6.0",
"typescript": "^4.9.4",
"vite": "^4.0.4",
"vitest": "^0.27.0"
}, |
Description
I'd like to use the syntax highlighting and code completion features this extensions provides for Svelte files in MDsveX files as well. This can be done by adding
to VS Code's
settings.json
. Works great in limited cases. The main obstacle is frontmatter.The metadata section is collapsed by auto-format on save to
Proposed solution
Maybe there could be a setting
ignoreFrontmatter
which ignores everything insideand pretends the Svelte file starts after that?
Alternatives
No response
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: