Open mjbvz opened 5 years ago
1.5 million! I'm super curious about what's in those millions of lines
I'm investigating why we start making requests on the 80000.chunk.js
file even though it is never opened on the TS Server
(Note that the stall seems to happen before this and on a different file)
The originally file was 50.2 mb. Seems like a VS code error that caused us to start making requests for this file without opening it first. 50mb is the limit of what we synchronize with extensions. I haven't been able to trigger it again though
The smaller, 10-15mb files in the repo are likely more interesting. Here's the log: tsserver.log.zip
It's seems faster with 3.3 and I don't see any stalls. The long running requests:
@mjbvz On our side the large file is classified as anything more than 4mb. https://github.com/Microsoft/TypeScript/blob/master/src/server/editorServices.ts#L4
Does that mean we should not sync files over that size with TS Server?
Does that mean we should not sync files over that size with TS Server?
Right.
We can do that. On the server side, should requests against large files be treated as noops? Right now it looks like ts server still tries handling them
@mjbvz what's left to do here?
I'll test this again in the latest VS Code
From https://github.com/Microsoft/vscode/issues/63473
TypeScript Version: 3.3.0-dev.20181128
Search Terms:
Repo Open one of the files from the user's project. These are very large files, some with 1.5 million lines
Bug TS Server goes unresponsive. Here's one example log file: tsserver.log
Two observations: