1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Added "Unlocked Projects" options to Find in Files

This commit is contained in:
Brian Fiete 2020-10-26 14:05:48 -07:00
parent 71f5448f32
commit 710d7636d6

View file

@ -17,8 +17,9 @@ namespace IDE.ui
{
public static String sCurrentDocument = "Current Document";
public static String sCurrentProject = "Current Project";
public static String sUnlockedProjects = "Unlocked Projects";
public static String sEntireSolution = "Entire Solution";
public static String[] sLocationStrings = new .(sCurrentDocument, sCurrentProject, sEntireSolution) ~ delete _;
public static String[] sLocationStrings = new .(sCurrentDocument, sCurrentProject, sUnlockedProjects, sEntireSolution) ~ delete _;
List<String> mPendingLines = new List<String>() ~ DeleteContainerAndItems!(_);
@ -413,6 +414,16 @@ namespace IDE.ui
AddFromFilesFolder(project.mRootFolder, searchOptions);
}
}
else if (searchOptions.mSearchLocation == sUnlockedProjects)
{
for (var project in IDEApp.sApp.mWorkspace.mProjects)
{
if (project.mLocked)
continue;
AddFromFilesFolder(project.mRootFolder, searchOptions);
}
}
else if (searchOptions.mSearchLocation == sCurrentDocument)
{
var sourceViewPanel = gApp.GetActiveSourceViewPanel(true);