When using VSCode on macOS, randomly a `sysdiagnose.tar.gz` will be generated I'm using Microsoft's Visual Studio Code (VSCode) to develop TypeScript. All versions are their most up-to-date (and this was happening with 10.15.6, so it's not a 10.15.7 issue).
Randomly a Finder window will pop up at /private/var/tmp with a new sysdiagnose dump.
The file is called sysdiagnose_[date stamp]_[MacBook Pro machine details].tar.gz. When unpacked, it contains an entire folder structure full of dumps.
As such it's massively unhelpful! Which one do I need to care about?
I've checked Console.app but it also isn't very helpful unless you know what you're looking for. I do see a pile of events generated by spindump but they all just say Already saw task &lt;private&gt; [10437] in this stackshot, ignoring second instance. I don't see anything obvious immediately before these events.
What might be causing this, and how do I go about using these tools to figure out what it is?
Most likelely you hit Control-Option-Command-Shift-. now and then which triggers system diagnostics (see How do you get system diagnostic files from macOS?) for details.