private async Task SwitchToFactoryAsync(IPythonInterpreterFactory factory) { await _envSwitchMgr.SwitchToFactoryAsync(factory); var uiShell = _serviceProvider.GetService(typeof(SVsUIShell)) as IVsUIShell; uiShell?.UpdateCommandUI(0); }
public Task InvokeAsync(int index) => _envSwitchMgr.SwitchToFactoryAsync(_allFactories[index]);