sveltejs/language-tools

Svelte 5: After adding a line break to element attributes that use `{}` syntax, type intellisense no longer works.

HighFunctioningSociopathSH opened this issue · 2 comments

Describe the bug

Typescript IntelliSense won't show any suggestions after an event is passed to an element.

Reproduction

This is what it's supposed to show.

image

But after you add an event this is what you get

image

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
    Memory: 5.54 GB / 15.63 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 9.7.1 - ~\AppData\Roaming\npm\npm.CMD
    bun: 1.1.3 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.3527

Severity

annoyance

I noticed that if there is no white space or line breaks after the event, the suggestions are shown properly.
image

It probably has something to do with object syntax or new line. for example the following code gives intellisense.
image

But after adding a line break the intellisense is gone.
image