Skip to content

Conversation

@drewnoakes
Copy link
Contributor

The current "Copy subtree" command copies the entire subtree, including nodes that aren't visible in the tree given the current expansion state.

This change adds a new command that only copies what's visible in the tree.

My use case was having a long list of targets within a project, and two binlogs (before and after). It's very hard to spot the differences here, so I want to export the target names and compare then in another tool. This command enables that.


image

Puts the following on the clipboard:

_EnableNpmPack
    Exec
    _ExecuteNpmPack = false
    _ExecuteNpmPack = true
    Task "Message" skipped, due to false condition; (!$(_ExecuteNpmPack) and '$(AllowSkipNpmPack)' == 'true') was evaluated as (!true and '' == 'true').
    Task "Error" skipped, due to false condition; (!$(_ExecuteNpmPack) and '$(AllowSkipNpmPack)' != 'true') was evaluated as (!true and '' != 'true').

Note how the "Exec" task doesn't list any children.

The current "Copy subtree" command copies the *entire* subtree, including nodes that aren't visible in the tree given the current expansion state.

This change adds a new command that only copies what's visible in the tree.

My use case was having a long list of targets within a project, and two binlogs (before and after). It's very hard to spot the differences here, so I want to export the target names and compare then in another tool. This command enables that.
Copy link
Owner

@KirillOsenkov KirillOsenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How very nice!

@KirillOsenkov KirillOsenkov merged commit 142785a into KirillOsenkov:main Sep 11, 2025
1 check passed
@drewnoakes drewnoakes deleted the copy-visible-subtree branch September 11, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants