Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
HighFunctioningSociopathSH opened this issue Jun 8, 2024 · 2 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@HighFunctioningSociopathSH

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

@dummdidumm dummdidumm transferred this issue from sveltejs/svelte Jun 8, 2024
@HighFunctioningSociopathSH
Copy link
Author

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

@HighFunctioningSociopathSH
Copy link
Author

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

@HighFunctioningSociopathSH HighFunctioningSociopathSH changed the title Svelte 5: After adding an event to an element, type intellisense no work for the attributes and props. Svelte 5: After adding a line break to element attributes that use {} syntax, type intellisense no longer works. Jun 16, 2024
dummdidumm added a commit that referenced this issue Jun 24, 2024
make sure we do the cheaper component/element autocompletion lookup in more cases
#2394
@dummdidumm dummdidumm added bug Something isn't working Fixed Fixed in master branch. Pending production release. labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants