Open timephy opened 1 day ago
Also "Organize Imports" does weird stuff... It transforms this:
<script lang="ts" module>
export type { IconType } from "svelte-awesome/components/Icon.svelte"
</script>
<script lang="ts">
</script>
to this:
<script lang="ts" module>
export type { IconType } from "svelte-awesome/components/Icon.svelte"
<script lang="ts">
</script>
And this:
<script lang="ts">
import Icon, { type IconType } from "$lib/ui/Icon.svelte"
let {
icon,
}: {
icon?: IconType
} = $props()
</script>
to this:
<script lang="ts">
import Icon, { type IconType } from "$lib/ui/Icon.svelte"
{
icon?: IconType
} = $props()
</script>
My second comment seems to be related to or a duplicate of #2607
Describe the bug
Hey, I am not sure whether this is the right place to report this.
When I auto-import something from within a (ts) script, then it misplaces the import statement, therefore breaking the script, and requiring manual fixing:
It DOES matter what is imported... This for example is correctly auto-imported:
This has been bothering me for close to a week now.
Reproduction
Not sure how to reproduce this.
But I am using
Logs
No response
System Info
Severity
annoyance