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:
parent
71f5448f32
commit
710d7636d6
1 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue