Skip to content

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

Open
@ipb26

Description

@ipb26

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions