language-tools
language-tools copied to clipboard
Multiple event listeners of same type throws error
Describe the bug
Adding multiple event listeners for the same event causes a duplicate property warning in the editor, but no errors at runtime as I believe this is supported behavior in Svelte.
Reproduction
<svelte:window
on:keydown|capture={windowKeydownCapture}
on:keydown|stopPropagation={windowKeydown} // An object literal cannot have multiple properties with the same name. ts(1117)
/>
Expected behaviour
This code should not error, it should be valid Svelte.
System Info
- OS: macOS
- IDE: VSCode
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
This might be a TS-related bug. If so, please let me know the best place to post such an issue.