Silence the startup command printout in Integrated Terminal
See original GitHub issueWhen I run a Dart app in the Integrated Terminal, it prints out a very verbose startup command, e.g.:
cd /Users/mikem/myproject; /usr/local/Cellar/dart/2.8.2/libexec/bin/dart --enable-vm-service=0 --pause_isolates_on_start=true --write-service-info=file:///var/folders/2n/vn59_vz152vg107rrs53ympc0000gn/T/dart-vm-service-ee74.json -DSILENT_OBSERVATORY=true --enable-asserts bin/main.dart
This happens for Javascript too:
mikem@MBP node_sample % /usr/local/bin/node --inspect-brk=6018 scripts/simple.js Debugger listening on ws://127.0.0.1:6018/453abe68-1da3-4862-8ba4-71d8e3dfd8d6 For help, see: https://nodejs.org/en/docs/inspector Debugger attached.
These printouts pollute the scrollback and aren’t very useful imho. Could we get an option to silence this output, so the first thing I see in the Integrated Terminal is one of the print statements actually in my code?
Note that this doesn’t happen when using the Debug Console. There, I only see this printout (which also would be nice to silence, but at least it’s less verbose):
Connecting to VM Service at ws://127.0.0.1:58210/4yciVJ1NsWE=/w
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:20 (16 by maintainers)
Top GitHub Comments
Sorry, but you called it issue:
I tried to explain that this is not a VS Code issue because VS Code is not “printing” out anything.
VS Code is just “typing” a long command that starts with “cd /Users/…; bin/main.dart” into the Integrated Terminal and the shell in that terminal echos the command in the same way it is echoing when you type manually.
I will open this as a feature request.
Currently, if the start command is long, it is wrapped into multiple lines by the terminal. Users cannot quickly find the real starting point of the program output. This is the main pain point.
If the integrate terminal allows disabling the line wrapping, that will mitigate this issue too.
I found there is an existing feature request to support disabling line wrapping in integrated terminal. https://github.com/microsoft/vscode/issues/74501