KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.41k stars 188 forks source link

Add shortcut to view full message #753

Open nohwnd opened 5 months ago

nohwnd commented 5 months ago

I am working on the new vstest reporter that integrates with msbuild, and I am using the latest binlog viewer. I report many multiline messages, and when I report with source information it is hard to discover that there is more to see in the message itself, beacuse it will navigate to source when I press Space.

The message below reports location information: (reported like this: Log.LogMessage(null, "VSTEST1", null, file, lineNumber, 0, 0, 0, MessageImportance.Low, $"{displayName}: {fullErrorMessage}{n}Stack Trace:{n}{fullStackTrace}"); )

image

The full message can be shown by right clicking and choosing View full text, but until today I did not know about that, and only found about it because I know there are multiple lines in the message:

image

When there is no source information the full message is shown when pressing space:

image

I don't think it is obvious, and it would be nice if there was some way to improve this:

e.g. a shortcut for this, spelled out in the line:

image

... (Space: View code, Ctrl+Space: View message, Ctrl+C: copy message)

Or opening both views on the right side (probably hard to do, in practical and ergonomic way , unless you split screen horizontally).

Or change the default for multiline messages to show the message...