monodevelop icon indicating copy to clipboard operation
monodevelop copied to clipboard

[Version Control] Fixes error adding new files to the Solution Items under Version Control

Open jsuarezruiz opened this issue 5 years ago • 4 comments

We have some changes here. The first one was adding the file in the solution. If there is no "Solution Items" folder, we create it. On the other hand, trying to add the file to the repository (Add command) a validation was made taking into account the ActiveDocument that we will only have if the document is open (it is not always the case, or can even deal with a file that is not text). Validation changed.

Fixes VSTS #715157

jsuarezruiz avatar Mar 14 '19 10:03 jsuarezruiz

The approach of the fix is not quite right. The problem is in the solution pad, where for some reason commands are not enabled. Solution pad commands are not handled by FileVersionControlCommandHandler. This class handles commands that apply to the active document, but not for the solution pad. Solution pad commands are handled by a tree node command handler, together with a corresponding NodeBuilderExtension. Maybe for some reason the node builder extension is not being applied to solution items, so handlers are not enabled.

slluis avatar Mar 14 '19 13:03 slluis

@Lluis, you are right. The problem seems to be the node type validation from VersionControlNodeExtension in the method CanBuildNode (SolutionFolderItem). Will send changes soon!

jsuarezruiz avatar Mar 14 '19 17:03 jsuarezruiz

@monojenkins backport release-8.2

sevoku avatar Jun 27 '19 16:06 sevoku

@sevoku are we still interested in getting this PR merged?

Therzok avatar Aug 21 '19 00:08 Therzok