Open ignatiusmb opened 1 year ago
Its not just for destructuring (though I can replicate that as well). In this snippet, it breaks with the same symptoms:
<svelte:window
on:mousemove={() => {
if (true) {return}
if (2 >= 1) {}
}}
/>
<style lang="scss">
/* js suggestions here :// */
</style>
Describe the bug
Having an inline event handler inside an element (doesn't have to be a special element) breaks
<style>
tag IntelliSense.Reproduction
Copy and paste the snippet to an empty
.svelte
file and trigger the autocomplete box in the styles tagExpected behaviour
CSS autocompletion works without having to move destructuring inside the function body.
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response