From 80e6ac78501b7cd45808765f04b638834de24ab2 Mon Sep 17 00:00:00 2001 From: parnic Date: Thu, 8 Aug 2019 21:01:00 -0500 Subject: [PATCH] Set focus to the window we just opened Fixes https://github.com/parnic/VSQuickOpenFile/issues/7 --- ListFiles.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ListFiles.xaml.cs b/ListFiles.xaml.cs index b5c4b01..a976e72 100644 --- a/ListFiles.xaml.cs +++ b/ListFiles.xaml.cs @@ -131,11 +131,13 @@ private void OpenSelectedFiles(bool bInSolutionExplorer) { var w = (item as ProjectItemWrapper).ProjItem.Open(); w.Visible = true; + w.Activate(); } catch (Exception) { var w = OpenFileInSolutionPackage.GetActiveIDE().ItemOperations.OpenFile((item as ProjectItemWrapper).Path); w.Visible = true; + w.Activate(); } } else