Skip to content

Runes showing as usable in non svelte files #34

Closed
@KieranP

Description

@KieranP

Runes ($state, $props, $derived, etc) can only be used in *.svelte, *.svelte.ts, or *.svelte.js files.

But when I install this Svelte extension, and use a rune in a non-svelte file, the LSP is showing it as usable, when it shouldn't.

Image

By contrast, here is what a fake run shows, which is what valid runes should report in non-svelte files:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions