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
<scriptlang="ts">
let count =$state(2);let x =count;// ^^^^^ State referenced in its own scope will never update. Did you mean to reference it inside a closure?svelte(state_referenced_locally)
</script>
<div></div>
and i try to quick-fix it it get's quick-fixed like this
<scriptlang="ts">
let count =$state(2);let x =count;// ^^^^^ State referenced in its own scope will never update. Did you mean to reference it inside a closure?svelte(state_referenced_locally)
</script>
<!-- svelte-ignore state_referenced_locally -->
<div></div>
Reproduction
open VSCode
paste the above code
try to quick fix it
Expected behaviour
<scriptlang="ts">
let count =$state(2);// svelte-ignore state_referenced_locallylet x =count;
</script>
<div></div>
System Info
VSCode
Which package is the issue about?
Svelte for VS Code extension, svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If i have code like this
and i try to quick-fix it it get's quick-fixed like this
Reproduction
Expected behaviour
System Info
VSCode
Which package is the issue about?
Svelte for VS Code extension, svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: