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

Closing script tag is removed on Organize Imports #2679

Open
Stadly opened this issue Feb 5, 2025 · 0 comments
Open

Closing script tag is removed on Organize Imports #2679

Stadly opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Stadly
Copy link

Stadly commented Feb 5, 2025

Describe the bug

When I do Organize Imports in VS Code, the closing script tag is removed.

Reproduction

<script lang="ts" module>
</script>

<script lang="ts">
  import { Foo } from "$lib/bar.js";
</script>

{#snippet baz()}
{/snippet}

Organize Imports in VS Code leads to this:

<script lang="ts" module>
</script>

<script lang="ts">
  {#snippet baz()}
{/snippet}

Expected behaviour

<script lang="ts" module>
</script>

<script lang="ts">
</script>

{#snippet baz()}
{/snippet}

System Info

  • OS: Ubuntu running on Windows with WSL2
  • IDE: VSCode

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

@Stadly Stadly added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant