-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Auto-import breaks script #2608
Labels
Fixed
Fixed in master branch. Pending production release.
Comments
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z (2 wks ago)
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin x64 24.1.0
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: