-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
tsc --watch --incremental recompiles are too slow for use with VS Code source #33329
Comments
@mjbvz I'd be curious if we're bumping into the same issue with version 3.6.2 as us. The issue we're seeing is not related to If I understand correctly, Stats for a codebase with ~9K CLOC:v3.4.5 and v3.5.3 with --incremental
3.6.2 with --incremental
|
From email chain:: tsc handles scenario where you might introduce errors through indirect import change where as gulp-tsb doesn't (which at that point was intentional`. The gulp tsb is rescanning diagnostics only for (apart from linkedList.ts)
While tsc does it mostly for all files since they could be affected. Instead of linkedList I changed
You will notice in most cases the time would be in checking than emitting and that accounts for the time spent in rescanning semantic diagnostics for files that could be impacted because signature of the file changed. |
We're seeing no speedup from |
@mheiber Did you try typescript@3.6.3? |
@sheetalkamat I found the same with typescript@3.6.3. Tested on both Windows 10 and Linux. Sorry for the late reply. |
@mheiber Please share a repro so we can investigate it, Also please create separate issue for that since this is tracking vscode's issue of rebuild taking longer which happens to be working as intended at moment but we are still thinking about what can be done here. |
Thanks @sheetalkamat . I added steps to reproduce to an existing issue for --incremental not speeding up compilation: #33667 |
…ts files for files indirectly importing affected file Fixes #33329
…ts files for files indirectly importing affected file Fixes #33329
…cking and generating .d.ts files for files indirectly importing affected file (#35711) * Baselining tsc --watch output * Add noIndirectImports as a option to skip checking and generating .d.ts files for files indirectly importing affected file Fixes #33329 * Rename option to assumeChangesOnlyAffectDirectDependencies * Description change as per feedback
From microsoft/vscode#80074
TypeScript Version: 3.6.2
Search Terms:
Repo
Clone and start building VS Code with
--incremental --watch
src/vs/base/common/linkedList.ts
unshift
todeshift
and saveExpected behavior:
Recompile is fairly quick. Our custom gulp-tsb builder takes a second or two for this case
Actual behavior:
Rebuild with tsc takes considerable time. This blocks VS Code from migrating to use standard
tsc --watch
instead ofgulp-tsb
The text was updated successfully, but these errors were encountered: