public ProjectView(IPythonWorkspaceContext workspace) { Workspace = workspace ?? throw new ArgumentNullException(nameof(workspace)); Name = workspace.WorkspaceName; HomeFolder = workspace.Location; if (workspace.CurrentFactory != null) { var id = workspace.CurrentFactory.Configuration.Id; InterpreterIds = new string[] { id }; ActiveInterpreterId = id; } else { InterpreterIds = new string[0]; ActiveInterpreterId = string.Empty; } RequirementsTxtPath = workspace.GetRequirementsTxtPath(); EnvironmentYmlPath = workspace.GetEnvironmentYmlPath(); }