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

tsserver seems to watch entire home directory #60989

Open
sweber83 opened this issue Jan 17, 2025 · 0 comments
Open

tsserver seems to watch entire home directory #60989

sweber83 opened this issue Jan 17, 2025 · 0 comments

Comments

@sweber83
Copy link

🔎 Search Terms

When developing on a typescript project I keep needing to restart the tsserver because it always gets unresponsive after the first iteration checking my opened file.
Today I finally had a look at the log file.
I found the following lines (redacted my user name):

DirectoryWatcher:: Added:: WatchInfo: /home/REDACTED/ 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache
...
Info 72523[16:05:52.615] sysLog:: /home/REDACTED/some/file/somewhere/in/my/home:: Defaulting to watchFile
...
Elapsed:: 263231.954163ms DirectoryWatcher:: Added:: WatchInfo: /home/REDACTED/ 1 undefined WatchType: node_modules for closed script infos and package.jsons affecting module specifier cache

The line in between the ellipsis is repeated hundred thousands of times, apparently watching all the files in my home directory.
What could be the issue?

🕗 Version & Regression Information

  • This behavior was observed in version 5.3.3, 5.4.5 & 5.7.3

⏯ Playground Link

No response

💻 Code

// Your code here

🙁 Actual behavior

🙂 Expected behavior

Additional information about the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant