Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

[Ide] Improve Pasting into Solution pad #6158

Closed
wants to merge 1 commit into from

Conversation

sevoku
Copy link
Member

@sevoku sevoku commented Oct 2, 2018

When pasting data into the solution pad, it might happen that the currently selected node can not handle the data. This is for example the case if a file is selected, the user would expect the data to be pasted into the same folder.

This patch adds some logic to try pasing into the parent node, if the currently selected node can not handle it.

Fixes VSTS #666943

NOTE: this depends on #6169

When pasting data into the solution pad, it might happen
that the currently selected node can not handle the data.
This is for example the case if a file is selected, the user
would expect the data to be pasted into the same folder.

This patch adds some logic to try pasing into the parent
node, if the currently selected node can not handle it.

Fixes VSTS #666943
@sevoku sevoku requested a review from slluis as a code owner October 2, 2018 08:11
@sevoku
Copy link
Member Author

sevoku commented Oct 2, 2018

@monojenkins backport release-7.7

Copy link
Member

@slluis slluis left a comment

Choose a reason for hiding this comment

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

This behavior should be opt-in. The parent should be able to decide if it can handle paste operations on behalf of children.

@sevoku
Copy link
Member Author

sevoku commented Oct 8, 2018

@slluis isn't it a kind of an opt-in now? If the node doesn't want to handle the data, the parent has the ability to decide in https://github.com/mono/monodevelop/pull/6158/files#diff-50d02569d1ec7f037ba42611f2066af6R1290 by checking the node and the data in CanDropMultipleNodes

@slluis
Copy link
Member

slluis commented Oct 8, 2018

I mean that the new behavior should be opt-in. Existing node builders should not be affected by this behavior change unless they explicitly decide so.

@mkrueger
Copy link
Contributor

Rebased & added opt-in to master-vnext.

@mkrueger mkrueger closed this Mar 27, 2019
@Therzok Therzok deleted the fix666943-copy-paste-same-file branch July 20, 2019 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants