-
-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Editor syntax highlighting goes away when svelte preprocessor defaults are set. It seems the editor falls-back to its default nature, e.g., expects all style tags to be css.
Note: All the errors and warnings are still reported fine, the only missing part is the syntax highlighting (and editor suggestions of course).
To Reproduce
- Add
svelte.config.jswith the following contents (from here, and here):const sveltePreprocess = require('svelte-preprocess'); module.exports = { preprocess: sveltePreprocess({ defaults: { markup: 'html', script: 'typescript', style: 'scss' }, }); };
- Restart the Svelte's language server by issuing
Svelte: Restart Language ServerVSCode command.
Expected behavior
Syntax highlighting should work fine with or without setting lang="scss" attribute on component's style tags.
System (please complete the following information):
- OS: Linux
- IDE: VSCode
- Plugin/Package: Svelte for VSCode official extension
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
