diff options
author | nosami <jasonimison@gmail.com> | 2019-08-29 14:58:59 +0300 |
---|---|---|
committer | nosami <jasonimison@gmail.com> | 2019-08-29 17:38:51 +0300 |
commit | ae07845b0d9c274db4a6eff48bec7d8d4cbb50e2 (patch) | |
tree | 8820678fe344e8d4e5907ec48eadc9cca5a2734f /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs | |
parent | 4c4c5ffdafb92c0a311d3aa4520d87c1ebf603d2 (diff) |
Do not show "Include in Project" for empty folders
"Include in Project" command was only hidden if a folder contained items
that were inside the project
fixes VSTS #970095
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs index 2a5cdc909b..956895d93d 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs @@ -384,7 +384,7 @@ namespace MonoDevelop.Ide.Gui.Pads.ProjectPad internal static bool PathExistsInProject (Project project, FilePath path) { string basePath = path.ToRelative (project.BaseDirectory); - return project.Files.GetFilesInVirtualPath (basePath).Any (); + return project.Files.GetFilesInVirtualPath (basePath).Any () || project.Files.GetFile (path) != null; } internal static bool ContainsDirectorySeparator (string name) |