Skip to content

Typescript auto-import works intermittently / doesnt pick up changes in node_modules #7340

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

Open
2 tasks done
ipb26 opened this issue May 6, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@ipb26
Copy link

ipb26 commented May 6, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Arch Latest
  • Remote OS: Ubuntu 24.04
  • Remote Architecture: x64
  • code-server --version: 4.99.3 c36b2d3 with Code 1.99.3

Steps to Reproduce

  1. Add a dependency (project A) to a project (project B) , or rebuild a project that is a symlink dependency in yarn.
  2. Type the name of an export from the project A in project B and hover over it, or do organize imports.

Expected

Intellisense and/or organize imports should pick up the new import.

Actual

Nothing, I get Cannot find name 'X'

Logs

I am not sure what lines are relevant. On startup I immediately get thousands and thousands of lines of logs.

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

Everyone online says that restarting the typescript server should fix this but it does not fix it for me no matter how many times I restart. I have to do the import manually, and then after that it will work automatically when i do automatic imports (usually). If I don't do this the change will as far as I can tell never get picked up.

@ipb26 ipb26 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels May 6, 2025
@code-asher
Copy link
Member

This is probably a VS Code bug, are you able to reproduce in Codespaces? We just wrap VS Code for the web with a few patches. It could be possible our patches broke something, but I do not believe we patch anything related to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants