You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand correctly, svelte language server doesn't take style:property="{variable}" for variable usage.
Bug exists with new transformation also (#1352).
Reproduction
repo link will be here soon
<scriptlang="ts">
let clientWidth =0;
</script>
<divbind:clientWidthstyle:--element-width="{clientWidth}px"></div>
clientWidth here becomes unused variable when it's actually used.
Expected behaviour
Variable should not be marked as unused.
System Info
OS: Macos ventura 13.0
IDE: VS Code 1.71.0, Svelte for VS Code 105.22.1
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
ZerdoX-x
changed the title
Falsy hint (unused var) when using style:property directive
Falsy hint (unused var) when using style:property directive (with TS only)
Sep 9, 2022
ZerdoX-x
changed the title
Falsy hint (unused var) when using style:property directive (with TS only)
Falsy hint (unused var) when using style:property directive (only with TS and new transformation)
Sep 9, 2022
dummdidumm
added a commit
to dummdidumm/language-tools
that referenced
this issue
Sep 13, 2022
Describe the bug
If I understand correctly, svelte language server doesn't take
style:property="{variable}"
for variable usage.Bug exists with new transformation also (#1352).
Reproduction
repo link will be here soon
clientWidth
here becomes unused variable when it's actually used.Expected behaviour
Variable should not be marked as unused.
System Info
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: