61 references to Global
aspire (6)
Agents\AgentPath.cs (2)
54? GetDisplayPath(path, AgentConfigurationScope.Global, workspaceRoot, executionContext) 72return scope is AgentConfigurationScope.Global ? $"~/{displayRelativePath}" : displayRelativePath;
Agents\AspireSkills\LocalAspireSkills.cs (1)
50.Append((Path: Path.Combine(homeDirectory.FullName, AgentPath.UniversalSkillsDirectory), Scope: AgentConfigurationScope.Global, Owners: s_universalSkillOwners));
Agents\Copilot\CopilotAgentClient.cs (1)
89if (scope is not AgentConfigurationScope.Global)
Agents\McpConfigFileHelper.cs (1)
97var serverConfiguration = scope is AgentConfigurationScope.Global
Commands\AgentInitCommand.cs (1)
523new[] { AgentConfigurationScope.Project, AgentConfigurationScope.Global },
Aspire.Cli.Tests (55)
Agents\AgentConfigurationTests.cs (13)
220var inherited = client.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project); 295var path = _context.OpenCode.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project); 300remote, _context.Project, AgentConfigurationScope.Global, remoteEdit, _context.Sources, CancellationToken.None); 303path, _context.Project, AgentConfigurationScope.Global, mcpEdit, CancellationToken.None); 304_context.OpenCode.UpdateMcpConfig(mcp, mcpPath, configureServer: true, AgentConfigurationScope.Global); 528var userResults = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, clients).DefaultTimeout(); 570var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.ClaudeCode]).DefaultTimeout(); 594: client.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project); 673var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.ClaudeCode]).DefaultTimeout(); 685var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.Copilot]).DefaultTimeout(); 686var repeated = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.Copilot]).DefaultTimeout(); 704AgentConfigurationScope.Global, [_context.Copilot, _context.ClaudeCode]); 726AgentConfigurationScope.Global, [_context.Copilot, _context.ClaudeCode]);
Agents\AgentPathTests.cs (3)
45_context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.Global, _context.Project)); 47_context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project)); 86Assert.Equal(projectPath, AgentPath.GetDisplayPath(projectPath, AgentConfigurationScope.Global, _context.Project, _context.ExecutionContext));
Agents\LocalAspireSkillsTests.cs (2)
83new[] { (project, AgentConfigurationScope.Project), (user, AgentConfigurationScope.Global) } 96Assert.Equal([(skill, AgentConfigurationScope.Project), (skill, AgentConfigurationScope.Global)], result);
Agents\OpenCodeAgentClientTests.cs (4)
170if (scope is AgentConfigurationScope.Global) 351var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.OpenCode]); 356Assert.Equal(_context.OpenCode.GetMcpConfigPath(AgentConfigurationScope.Global, _context.Project), result.TargetPath); 378var results = await _context.ConfigureIntegrationAsync(AgentConfigurationScope.Global, [_context.OpenCode]);
Agents\SkillSourceTests.cs (1)
207var scope = global ? AgentConfigurationScope.Global : AgentConfigurationScope.Project;
Commands\AgentInitClientSelectionTests.cs (26)
100var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 206[InlineData("GlObAl", nameof(AgentConfigurationScope.Global))] 490Assert.Equal([AgentConfigurationScope.Project, AgentConfigurationScope.Global], choices.Cast<AgentConfigurationScope>()); 499return AgentConfigurationScope.Global; 522workspace.WorkspaceRoot, AgentConfigurationScope.Global, [SkillSource.BuiltIn])); 549PromptForSelectionCallback = (_, _, _, _) => AgentConfigurationScope.Global 642var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 787var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 837var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 892var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 957var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1009var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1083var path = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1181var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1232var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1265var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1288var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1327var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.Global; 1428var path = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1476var mcpPath = client.GetMcpConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1477var pluginPath = client.GetIntegrationConfigPath(AgentConfigurationScope.Global, workspace.WorkspaceRoot); 1521var scope = global ? AgentConfigurationScope.Global : AgentConfigurationScope.Project; 1641Assert.True(File.Exists(context.Copilot.GetIntegrationConfigPath(AgentConfigurationScope.Global, context.Project))); 1642Assert.True(File.Exists(context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project))); 1643Assert.False(File.Exists(context.ClaudeCode.GetIntegrationConfigPath(AgentConfigurationScope.Global, context.Project))); 1649var mcpPath = context.Copilot.GetMcpConfigPath(AgentConfigurationScope.Global, context.Project);
Commands\AgentInitCommandTests.cs (5)
858[InlineData(nameof(AgentConfigurationScope.Global))] 874var prefix = scope is AgentConfigurationScope.Global ? "~/" : string.Empty; 1151client.GetIntegrationConfigPath(AgentConfigurationScope.Global, context.Project), settings); 1214[InlineData("copilot", nameof(AgentConfigurationScope.Global), "managed-settings.json")] 1361[InlineData(nameof(AgentConfigurationScope.Global))]
Commands\InitCommandTests.cs (1)
1105? AgentConfigurationScope.Global