Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Medrano <josmed@microsoft.com>2019-07-29 13:43:04 +0300
committerJose Medrano <josmed@microsoft.com>2019-07-29 13:43:04 +0300
commit6e256f7ff64e43cb2f042655036c9e42d5919d19 (patch)
tree3fb8c482bfff74c97e3020ab65d9100f51439ec6 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands
parenta5d99d0fa6e2d5f1fb8f07c88e84461b5b659efe (diff)
Some minor fixes
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs
index 880d2a5d6b..71cc02cde0 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs
@@ -150,10 +150,13 @@ namespace MonoDevelop.Ide.Commands
return ImmutableArray<Document>.Empty;
var activeNotebook = ((SdiWorkspaceWindow)active.Window).TabControl;
- var contents = IdeApp.Workbench.Documents.Where (doc => ((SdiWorkspaceWindow)doc.Window).TabControl == activeNotebook && GetTabFromDocument (doc).IsPinned)
- .Select (s => s.Window.Document);
-
- return contents.ToImmutableArray ();
+ var contents = Microsoft.CodeAnalysis
+ .ImmutableArrayExtensions
+ .WhereAsArray (
+ IdeApp.Workbench.Documents.ToImmutableArray (),
+ doc => ((SdiWorkspaceWindow)doc.Window).TabControl == activeNotebook && GetTabFromDocument (doc).IsPinned
+ );
+ return contents;
}
}