-
Notifications
You must be signed in to change notification settings - Fork 1.4k
allow a parameter to disable the live-updating nodes display #12581
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new parameter (DISABLENODEDISPLAY
) to the Terminal Logger that allows disabling the live-updating nodes display while preserving other Terminal Logger functionality. This change addresses performance concerns when MSBuild is executed by LLMs or other automated tools that don't benefit from live output updates.
- Introduces a new boolean field
_showNodesDisplay
that defaults to true for backward compatibility - Adds parameter parsing for
DISABLENODEDISPLAY
to toggle the display off - Conditionally starts the refresh thread and calls
DisplayNodes()
based on this setting
520084c
to
7f55c95
Compare
@rainersigwald mentioned we'd need to get VS QB approval for this at this time |
/backport to vs18.0 |
Started backporting to vs18.0: https://github.com/dotnet/msbuild/actions/runs/18165112437 |
Fixes part of #12486, but not all.
Context
This introduces a new Terminal Logger Parameter (
DISABLENODEDISPLAY
) that disables the live-updating node display portion of the Terminal Logger output. This output is very wasteful when LLMs are running the build, and the hope is that we can toggle this flag automatically at the dotnet CLI level to maintain the structure benefits of TL while also not flooding the context.Changes Made
Testing
tl-node-display-disable.mp4
Notes
This will use the logic from dotnet/sdk#51054 in the SDK to turn off the live-update feature.