Open Pytal opened 3 years ago
I did a quick-check as I thought my PR https://github.com/sveltejs/language-tools/pull/657 would've fixed this (I added source.stylus
to the extension's package.json
as it was missing) and yet it appears it hasn't. Normally, this should be all you need to do for autocomplete to work in an embedded language, or at least I thought so? Taking an educated guess, I bet the issue is with the Stylus extension itself not working within embedded blocks for whatever reason.
source.stylus
is only related to the highlighting in this context, the autocompletion has to be implemented separately through a language server/client.
Oh, to be clear, what I mean is that the field mapping the source.stylus
scope to the stylus
language was missing in the package.json
. What I had gathered from the VSCode docs is that you needed to assign some scope to an embedded language to get autocomplete to work. However, beyond that, I have no idea what I'm talking about and I was just documenting that my fix didn't work or was unrelated.
I have played around with this to no avail. If someone has a solution please share!
Describe the bug
Autocompletion does not work when writing styles with stylus in a sapper project.
To Reproduce Steps to reproduce the behavior:
Scaffold a sapper project and install stylus
Setup svelte-preprocess in
svelte.config.js
module.exports = { preprocess: sveltePreprocess() }
Expected behavior
Autocompletion suggestions for CSS properties should appear just as when writing css or scss.
System (please complete the following information):