aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.Package/VisualStudio/VsShell.cs
diff options
context:
space:
mode:
Diffstat (limited to 'QtVsTools.Package/VisualStudio/VsShell.cs')
-rw-r--r--QtVsTools.Package/VisualStudio/VsShell.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/QtVsTools.Package/VisualStudio/VsShell.cs b/QtVsTools.Package/VisualStudio/VsShell.cs
index 964e17e5..1aa2b467 100644
--- a/QtVsTools.Package/VisualStudio/VsShell.cs
+++ b/QtVsTools.Package/VisualStudio/VsShell.cs
@@ -84,5 +84,20 @@ namespace QtVsTools.VisualStudio
{
return GetProjectItem(context, itemid)?.Document;
}
+
+ private static IVsInfoBarHost _InfoBarHost = null;
+ public static IVsInfoBarHost InfoBarHost
+ {
+ get
+ {
+ ThreadHelper.ThrowIfNotOnUIThread();
+ if (_InfoBarHost != null)
+ return _InfoBarHost;
+ Initialize();
+ object host = null;
+ vsShell?.GetProperty((int)__VSSPROPID7.VSSPROPID_MainWindowInfoBarHost, out host);
+ return _InfoBarHost = host as IVsInfoBarHost;
+ }
+ }
}
}