Skip to content

Component suggestions working only at certain lines #2742

@IcyFoxe

Description

@IcyFoxe

Describe the bug

Hello, I found this strange bug, where Svelte component suggestions work only at certain lines.
Please look at this recording:

preview.mp4

At first I thought I had some configuration issues, so I went literally file to file comparing to the configuration of freshly initialized Svelte project, but considering I have almost exactly the same configuration settings, nothing did help. Only after that I've realized, that suggestion still work, just not on every line...

Reproduction

After trying to replicate it, I found a hint to what might be causing the issue:

  • initialize new Svelte app using npx sv create my-app
  • select these settings: minimal, typescript, prettier + eslint + adapter
  • in src/components create Button.svelte component
  • in .prettierrc add "svelteSortOrder": "markup-options-scripts-styles", <-- this seems to be causing the problem
  • in src/routes/+page.svelte add script UNDER the html, add div with span in it, and start importing button several times, just like in the video, to see the issue appear

Expected behaviour

Import suggestion should appear appear on any line.

System Info

  • OS: Windows 10
  • IDE: VSCode

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy