24 references to Global
aspire (5)
Agents\McpConfigFileHelper.cs (1)
117
var serverConfiguration = scope is AgentConfigurationScope.
Global
Commands\AgentInitCommand.cs (4)
393
new[] { AgentConfigurationScope.Project, AgentConfigurationScope.
Global
},
400
if (scope is AgentConfigurationScope.
Global
&& detectedEnvironments is null)
556
if (scope is AgentConfigurationScope.
Global
)
887
return scope is AgentConfigurationScope.
Global
? $"~/{displayRelativePath}" : displayRelativePath;
Aspire.Cli.Tests (19)
Commands\AgentInitClientSelectionTests.cs (19)
176
var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
193
(installSkills || configureMcp) && selectedScope is AgentConfigurationScope.
Global
&& detectedEnvironment is { } detected &&
279
[InlineData("GlObAl", nameof(AgentConfigurationScope.
Global
))]
412
Assert.Equal([AgentConfigurationScope.Project, AgentConfigurationScope.
Global
], choices.Cast<AgentConfigurationScope>());
414
return AgentConfigurationScope.
Global
;
505
var selectedScope = scope == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
648
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
696
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
750
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
829
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
880
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
948
var path = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot, executionContext, environment);
979
var path = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot, executionContext, new TestEnvironment());
1009
var path = client.GetMcpConfigPath(AgentConfigurationScope.
Global
, workspace.WorkspaceRoot, executionContext, new TestEnvironment());
1042
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1095
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1128
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1156
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;
1194
var scope = scopeName == "project" ? AgentConfigurationScope.Project : AgentConfigurationScope.
Global
;