File watcher and/or TS Server not triggering updates on symlinked folder changes #46864
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
TS Template added by @mjbvz
TypeScript Version: 4.5.1
Search Terms
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
npm link
in folder Bnpm link B
in folder AA/node_modules/B
which is by default excluded from the watcher"files.watcherInclude": ["./node_modules/B"]
to the workspace settings (I tried user settings also just to be sure; I also tried absolute paths etc)I'm not sure if this is a issue in the file watcher or the TS server, or maybe if this is how it is expected to work and there is just no support for symlinks. If I can do anything else to help debug let me know.
For anyone else that runs into this the workaround I've done is to make the workspace with folder A, do all the setup, and then add A/node_modules/@org (my symlinks are all inside a org scope) as a separate folder to the workspace (instead of adding B directly). This way changes are detected immediately while typing (so before even saving), as it should be.
The text was updated successfully, but these errors were encountered: