public static IVsUIShell GetIVsUIShell(IServiceProvider serviceProvider) { IVsDataHostService hostService = serviceProvider.GetService( typeof(IVsDataHostService)) as IVsDataHostService; return(hostService.GetService <IVsUIShell>()); }
private static void ActuallyUpdateUI(IVsDataHostService hostService) { IVsUIShell uiShell = hostService.GetService <IVsUIShell>(); uiShell.UpdateCommandUI(0); // fImmediateUpdate == false }
public static IVsUIShell GetIVsUIShell(IVsDataHostService hostService) { return(hostService.GetService <IVsUIShell>()); }