-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
JS/TS project supporting large projects (1000+ files) #35549
Comments
Info 524 [16:18:3.299] remove project: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan/network/gp/GlobalProtectPortalsViewer.js
Info 525 [16:18:3.300] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan/network/gp
Info 526 [16:18:3.300] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan/network
Info 527 [16:18:3.300] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan
Info 528 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js
Info 529 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs
Info 530 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui
Info 531 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt
Info 532 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src
Info 533 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature/fs4-kiev
Info 534 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4/feature
Info 535 [16:18:3.301] Close directory watcher for: c:/Users/hwong/p4
Info 536 [16:18:3.301] Close directory watcher for: c:/Users/hwong
Info 537 [16:18:3.301] Close directory watcher for: c:/Users
Info 538 [16:18:3.302] Project 'c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/tsconfig.json' (Configured) 0 Today I notice this. The folder EDIT: This is probably something different. |
Info 12 [15:29:54.281] Add recursive watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings
Info 13 [15:29:54.281] c for path c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings not found in cache...
Info 14 [15:29:54.281] Starting C:\Program Files\Microsoft VS Code\Code.exe with args ["c:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\node_modules\\typescript\\lib/watchGuard.js","c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings"]
Info 15 [15:29:54.415] WatchGuard for path c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings returned: OK
Info 16 [15:29:54.416] Add recursive watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan
Info 17 [15:29:54.416] watchDirectory for c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan uses cached drive information.
Info 18 [15:29:54.416] Add recursive watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/spec
Info 19 [15:29:54.416] watchDirectory for c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/spec uses cached drive information.
Info 20 [15:29:54.417] Add type root watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/node_modules/@types
Info 21 [15:29:54.417] watchDirectory for c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/node_modules/@types uses cached drive information. Noticed this: Info 12 [15:29:54.281] Add recursive watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings
Info 13 [19:21:34.595] c for path c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings not found in cache...
Info 14 [19:21:34.595] Starting C:\Program Files\Microsoft VS Code\Code.exe with args ["c:\\Program Files\\Microsoft VS Code\\resources\\app\\extensions\\node_modules\\typescript\\lib/watchGuard.js","c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings"]
Info 15 [15:29:54.415] WatchGuard for path c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/custom-typings returned: OK While the large folder: Info 16 [15:29:54.416] Add recursive watcher for: c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan
Info 17 [19:21:34.733] watchDirectory for c:/Users/hwong/p4/feature/fs4-kiev/src/mgmt/ui/htdocs/js/pan uses cached drive information. uses cached drive info. Is there a way to clear the cache to test again? Is it possible that the cache is corrupted? |
I try to build and run vscode from source code. But I can't find it in the developer tools when the warning appears. How do I debug into the TypeScript extension? |
I dig in and discovered I have one large file that push the That file is a 9MB JS file. However, Also, that value is not configurable. On the other hand, it would be a good idea to fire an event mentioning which file(s) causing the language service to become disabled. |
Also, I notice the file sizes are counted twice. I added a line here: https://github.com/Microsoft/TypeScript/blob/29ed92e20d31d637e92584216d55fb16cb80231e/src/server/editorServices.ts#L1374 to print out the Info 12 [16:57:20.882] max (20971520), avail (20971520), total (13548710)
...
Info 40 [16:59:36.825] max (20971520), avail (7422810), total (13548710) You can see the avail is decreased by the values in I have already removed all large items and now I don't have anything more to exclude. Help! 😞 |
This issue was moved to microsoft/TypeScript#19326 |
VSCode: 1.16.1
Original discussion:
#9594
I followed this instruction: #9594 (comment)
But looking in
tsserver.log
, I don't see anything that stands out.The text was updated successfully, but these errors were encountered: