Skip to content

Commit 3d88aec

Browse files
committed
properly handling with the code view of the .bim file is open
1 parent e44c953 commit 3d88aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SSAS/Tabular/TabularHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private static Microsoft.AnalysisServices.VSHost.VSHostManager GetVSHostManager(
2121
private static Microsoft.AnalysisServices.VSHost.VSHostManager GetVSHostManager(Microsoft.VisualStudio.Project.Automation.OAFileItem project, bool openIfNotOpen)
2222
{
2323
if (project == null) return null;
24-
if (openIfNotOpen && !project.get_IsOpen(EnvDTE.Constants.vsViewKindPrimary))
24+
if (openIfNotOpen && (!project.get_IsOpen(EnvDTE.Constants.vsViewKindPrimary) || project.get_IsOpen(EnvDTE.Constants.vsViewKindCode))) //having the code view open was passing this test previously
2525
{
2626
Window win = project.Open(EnvDTE.Constants.vsViewKindPrimary);
2727
if (win == null) throw new Exception("BIDS Helper was unable to open designer window.");

0 commit comments

Comments
 (0)