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

completions: Incorrect code produced when completing named imports in .svelte files. #2712

Open
ieedan opened this issue Mar 11, 2025 · 0 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@ieedan
Copy link

ieedan commented Mar 11, 2025

Describe the bug

Currently completing named imports in *.svelte files will add malformed code.

Reproduction

In the script of a *.svelte file begin to type a named import:

import { X } 

Then tab to complete the import.

Notice that the import is malformed:

import { X } from 'y';} // <- extra } 

https://github.com/ieedan/svelte-import-issue-repro

Expected behaviour

Completed import should read:

import { X } from 'y'; 

System Info

  • OS: Windows
  • IDE: VSCode

Which package is the issue about?

svelte-language-server

Additional Information, eg. Screenshots

No response

@ieedan ieedan added the bug Something isn't working label Mar 11, 2025
@jasonlyu123 jasonlyu123 added the Fixed Fixed in master branch. Pending production release. label Mar 12, 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 Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants