-
-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
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
createButton.svelte
component - in
.prettierrc
add"svelteSortOrder": "markup-options-scripts-styles",
<-- this seems to be causing the problem - in
src/routes/+page.svelte
addscript
UNDER the html, adddiv
withspan
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
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working