public async Task <IDialController> TryCreateControllerAsync(IDialControllerHost host, IAsyncServiceProvider provider, CancellationToken cancellationToken) { string iconFilePath = VsHelpers.GetFileInVsix(@"Providers\Errors\icon.png"); await host.AddMenuItemAsync(Moniker, iconFilePath); return(new ErrorsController(host)); }
public async Task <IDialController> TryCreateControllerAsync(IDialControllerHost host, IAsyncServiceProvider provider, CancellationToken cancellationToken) { string iconFilePath = VsHelpers.GetFileInVsix(@"Providers\Zoom\icon.png"); await host.AddMenuItemAsync(Moniker, iconFilePath); IVsTextManager textManager = await provider.GetServiceAsync <SVsTextManager, IVsTextManager>(cancellationToken); return(new ZoomController(host, textManager)); }