Skip to content

Not much help with ts code within the html of svelte files #1916

Closed
@stemaDev

Description

@stemaDev

I've been using svelte for a year now, using typescript, vscode and this as a plugin. It's working great apart from one part:
Code completion, code navigation, hover type info is not available in the html too much.
If I'm putting code into curly braces (either it's an if, each or just a simple value to insert), I rarely get code completion (sometimes I get it if I type the first character, cancel completion and reactivate it), there's no info when I hover over it (eg. type), can't navigate to a variable or the definition of a prop, no "right click -> find all references" (I mean there is, but it's not finding anything). Is this a configuration issue, as I was searching a lot before opening this ticket here.

Svelte for VS Code v107.1.2 (but it's been like this for around year for me, never worked)

Everything comes up for code completion, except for the variable created just above, also when I want to use it's properties. No hover information of what type it is, and when I ctrl+click it, it's not navigating anywhere.
image
image
image

Please help, it would make my life much easier. Thank You!

Metadata

Metadata

Assignees

No one assigned

    Labels

    limitationConstraints of the existing architecture make this hard to fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions