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

Imports completion not always working since version 109.0.1 #2541

Open
dennisvanderweide opened this issue Oct 22, 2024 · 3 comments
Open

Imports completion not always working since version 109.0.1 #2541

dennisvanderweide opened this issue Oct 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dennisvanderweide
Copy link

Describe the bug

In all versions >= 109.0.1 of the Svelte for VS Code extension, I stopped getting suggestions for some imports.
Some packages still work while others never do. Sometimes for a brief moment after I reload my VS Code, I have some correct suggestions, but after this first time I always just get a "No suggestions.".

Reproduction

I have a mono repo project with a SvelteKit app. This project runs in a Docker container using devcontainers.
When trying to import packages in a .svelte file, most of the time I get correct suggestions, but for some packages, in my case @capacitor/haptics, I don't. Other packages always work, this package never works.
After downgrading the Svelte for VS Code extension to version <= 109.0.0 and restarting VS Code, I have no problems with imports anymore.

Expected behaviour

I would expect imports to work for every package, just like they did before version 109.0.1.

System Info

  • OS: Linux 6.11.3 with Gnome 47 on Wayland
  • IDE: VSCode 1.94.2 (problem is only on VS Code >= 1.82)
  • Svelte for VS Code 109.1.0

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

No response

@dennisvanderweide dennisvanderweide added the bug Something isn't working label Oct 22, 2024
@jasonlyu123
Copy link
Member

Can you provide a reproduction repository and more detail on what kind of import completion has the problem? I can't reproduce this.
圖片

@sebwib
Copy link

sebwib commented Oct 23, 2024

I have the same issue. Restarting svelte language server helps, for a while.
I can't provide a repo because it doesnt happen in small repos I have created. Can this be related to project size? Our project is very large

@dennisvanderweide
Copy link
Author

dennisvanderweide commented Oct 23, 2024

@jasonlyu123 I tried to reproduce it again in my environment and suddenly everything seemed to work fine. It took me around 4 complete VS Code restart after I upgraded to the latest version of this extension (109.1.0) to reproduce it. At that point imports for this package stopped working again.

I created a public repository wherein I can reproduce the problem. In the README you can read what exactly to do to reproduce the problem. https://github.com/dennisvanderweide/svelte-for-vs-code-test

I also made a screencast of me triggering the problem just after reloading VS Code.
Screencast From 2024-10-23 16-56-56.webm

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

3 participants