false positive for svelte(state_referenced_locally)
when using typeof
in generics.
#15657
Labels
svelte(state_referenced_locally)
when using typeof
in generics.
#15657
Describe the bug
When using
typeof <value>
in a generic and thatvalue
happens to be something stateful ($state
/$derived
). The Svelte LSP will warn you about it being referenced locally even though that doesn't apply with generic types.Reproduction
Expected behaviour
State referenced with
typeof
in a generic expression should not warn me about locally referenced stateSystem Info
Which package is the issue about?
svelte-language-server, Svelte for VS Code extension
Additional Information, eg. Screenshots
I think the issue is in the language server but since I'm using it through the VSCode extension I flagged it as a VSCode extension issue, feel free to adjust it accordingly.
The text was updated successfully, but these errors were encountered: