When I'm using Cursor, TypeScript Go takes longer to process all the watches. In… this case I get 5sec vs 100ms, meaning that I have to wait at least 5 sec to get IntelliSense.
Not entirely related, but for additional context, it was taking more than 1 minute until I realized that this extension was causing a giant delay. https://marketplace.cursorapi.com/items/?itemName=Gruntfuggly.todo-tree
Context: https://discord.com/channels/508357248330760243/640177429775777792/1440751969743671347
Cursor Nightly:
Version: 2.1.0-pre.39.patch.0
VSCode Version: 1.105.1
Commit: e3421b88261cf04eca33886b1fa3d1f3047cb8b0
```
======== Cache Statistics ========
[19:09:04.116] Open file count: 1
[19:09:04.116] Cached disk files: 5295
[19:09:04.116] Project count: 1
[19:09:04.116] Config count: 20
[19:09:04.116] Parse cache size: 4287
[19:09:04.116] Program count: 1
[19:09:04.116] Extended config cache size: 0
[19:09:05.629] Added new watch: root files for /Users/myuser/project/demo/tsconfig.json watcher 45.0
[19:09:05.629] /Users/myuser/project/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:05.629]
[19:09:06.707] Added new watch: non-root program files for /Users/myuser/project/demo2/tsconfig.json watcher 50.1
[19:09:06.707] /Users/myuser/.cursor/extensions/typescriptteam.native-preview-0.20251119.1/lib/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:06.707]
[19:09:07.620] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.0
[19:09:07.620] /Users/myuser/project/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:07.620]
[19:09:07.952] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.1
[19:09:07.952] /Users/myuser/node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:07.952]
[19:09:08.398] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.2
[19:09:08.398] /node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:08.398]
[19:09:08.437] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.3
[19:09:08.437] /Users/myuser/folder2/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:08.437]
[19:09:08.456] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.4
[19:09:08.456] /Users/node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:08.456]
[19:09:08.461] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.5
[19:09:08.461] /Users/myuser/folder4/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:08.461]
[19:09:08.483] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.6
[19:09:08.483] /Users/myuser/folder3/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:08.483]
[19:09:08.483] Updated watches in 4.366386542s
```
VSCode:
vscode: Version: 1.106.1
Commit: cb1933bbc38d329b3595673a600fab5c7368f0a7
Date: 2025-11-16T10:20:23.745Z (3 days ago)
```
======== Cache Statistics ========
[19:09:23.229] Open file count: 1
[19:09:23.229] Cached disk files: 5295
[19:09:23.229] Project count: 1
[19:09:23.229] Config count: 20
[19:09:23.229] Parse cache size: 4287
[19:09:23.229] Program count: 1
[19:09:23.229] Extended config cache size: 0
[19:09:23.229] Updated watches in 147.334µs
======== Cache Statistics ========
[19:09:23.236] Open file count: 1
[19:09:23.236] Cached disk files: 5295
[19:09:23.236] Project count: 1
[19:09:23.236] Config count: 20
[19:09:23.236] Parse cache size: 4287
[19:09:23.236] Program count: 1
[19:09:23.236] Extended config cache size: 0
[19:09:23.254] Added new watch: root files for /Users/myuser/project/services/demo3/tsconfig.json watcher 33.0
[19:09:23.254] /Users/myuser/project/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.254]
[19:09:23.271] Added new watch: non-root program files for /Users/myuser/project/demo2/tsconfig.json watcher 50.1
[19:09:23.271] /Users/myuser/.vscode/extensions/typescriptteam.native-preview-0.20251119.1-darwin-arm64/lib/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.271]
[19:09:23.350] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.0
[19:09:23.350] /Users/myuser/project/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.350]
[19:09:23.356] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.1
[19:09:23.356] /Users/node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.356]
[19:09:23.368] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.2
[19:09:23.368] /node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.368]
[19:09:23.375] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.3
[19:09:23.375] /Users/myuser/folder2/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.375]
[19:09:23.387] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.4
[19:09:23.387] /Users/myuser/folder3/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.387]
[19:09:23.402] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.5
[19:09:23.402] /Users/myuser/folder4/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.402]
[19:09:23.411] Added new watch: failed lookups for /Users/myuser/project/demo2/tsconfig.json watcher 52.6
[19:09:23.411] /Users/myuser/node_modules/**/*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,json}
[19:09:23.411]
[19:09:23.411] Updated watches in 174.338416ms
```
Attached profiles:
[59004-cpuprofile.pb.gz](https://github.com/user-attachments/files/23635907/59004-cpuprofile.pb.gz)
[59004-memprofile.pb.gz](https://github.com/user-attachments/files/23635906/59004-memprofile.pb.gz)