KirillOsenkov / MSBuildStructuredLog

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

Navigate into `Import` elements #516

Closed ltrzesniewski closed 3 years ago

ltrzesniewski commented 3 years ago

Here's a new little feature:

image

You can now ctrl-click on an underlined Import element to open the file it points to.

An element won't be underlined if it points to different file paths in different evaluations, or if the file it points to is not available (because it never got imported for instance).

This could still be improved (Avalonia version, handling the back key, tooltips, selecting the target file if it's not unique, etc), but I didn't want to change too much at once.

KirillOsenkov commented 3 years ago

Thanks!

ltrzesniewski commented 3 years ago

After seeing a case, I now think that ambiguous Import elements not being underlined is misleading, as it suggests no import was ever made. I'll send a fix later today that will open a menu that lets you choose one of the files.