예제 #1
0
        private async Task SwitchToFactoryAsync(IPythonInterpreterFactory factory)
        {
            await _envSwitchMgr.SwitchToFactoryAsync(factory);

            var uiShell = _serviceProvider.GetService(typeof(SVsUIShell)) as IVsUIShell;

            uiShell?.UpdateCommandUI(0);
        }
예제 #2
0
 public Task InvokeAsync(int index) => _envSwitchMgr.SwitchToFactoryAsync(_allFactories[index]);