Skip to content

Commit ce6b7d9

Browse files
Copilotcaptainsafia
andcommitted
Merge main into branch and resolve conflicts
- Merged latest changes from main branch - Resolved merge conflict in DistributedApplicationPipelineTests.cs - Kept both sets of tests: tagging/configuration tests and step filtering tests - All 64 tests passing (60 original + 4 new from main) Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
1 parent cf743d0 commit ce6b7d9

File tree

88 files changed

+2688
-1500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2688
-1500
lines changed

Aspire.slnx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@
106106
<File Path="playground/README.md" />
107107
<Project Path="playground/Playground.ServiceDefaults/Playground.ServiceDefaults.csproj" />
108108
</Folder>
109+
<Folder Name="/playground/AspireWithJavaScript/">
110+
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.AppHost/AspireJavaScript.AppHost.csproj" />
111+
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.MinimalApi/AspireJavaScript.MinimalApi.csproj" />
112+
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.ServiceDefaults/AspireJavaScript.ServiceDefaults.csproj" />
113+
</Folder>
109114
<Folder Name="/playground/AzureAIFoundryEndToEnd/">
110115
<Project Path="playground/AzureAIFoundryEndToEnd/AzureAIFoundryEndToEnd.AppHost/AzureAIFoundryEndToEnd.AppHost.csproj" />
111116
<Project Path="playground/AzureAIFoundryEndToEnd/AzureAIFoundryEndToEnd.WebStory/AzureAIFoundryEndToEnd.WebStory.csproj" />
@@ -176,8 +181,8 @@
176181
<Project Path="playground/deployers/Deployers.AppHost/Deployers.AppHost.csproj" />
177182
</Folder>
178183
<Folder Name="/playground/DevTunnels/">
179-
<Project Path="playground/DevTunnels/DevTunnels.AppHost/DevTunnels.AppHost.csproj" />
180184
<Project Path="playground/DevTunnels/DevTunnels.ApiService/DevTunnels.ApiService.csproj" />
185+
<Project Path="playground/DevTunnels/DevTunnels.AppHost/DevTunnels.AppHost.csproj" />
181186
<Project Path="playground/DevTunnels/DevTunnels.WebFrontEnd/DevTunnels.WebFrontEnd.csproj" />
182187
</Folder>
183188
<Folder Name="/playground/dockerfile/">
@@ -199,11 +204,6 @@
199204
<Folder Name="/playground/HealthChecks/">
200205
<Project Path="playground/HealthChecks/HealthChecksSandbox.AppHost/HealthChecksSandbox.AppHost.csproj" />
201206
</Folder>
202-
<Folder Name="/playground/javascript/">
203-
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.AppHost/AspireJavaScript.AppHost.csproj" />
204-
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.MinimalApi/AspireJavaScript.MinimalApi.csproj" />
205-
<Project Path="playground/AspireWithJavaScript/AspireJavaScript.ServiceDefaults/AspireJavaScript.ServiceDefaults.csproj" />
206-
</Folder>
207207
<Folder Name="/playground/kafka/">
208208
<Project Path="playground/kafka/Consumer/Consumer.csproj" />
209209
<Project Path="playground/kafka/KafkaBasic.AppHost/KafkaBasic.AppHost.csproj" />
@@ -234,8 +234,8 @@
234234
</Folder>
235235
<Folder Name="/playground/node/">
236236
<Project Path="playground/AspireWithNode/AspireWithNode.AppHost/AspireWithNode.AppHost.csproj" />
237-
<Project Path="playground/AspireWithNode/AspireWithNode.ServiceDefaults/AspireWithNode.ServiceDefaults.csproj" />
238237
<Project Path="playground/AspireWithNode/AspireWithNode.AspNetCoreApi/AspireWithNode.AspNetCoreApi.csproj" />
238+
<Project Path="playground/AspireWithNode/AspireWithNode.ServiceDefaults/AspireWithNode.ServiceDefaults.csproj" />
239239
</Folder>
240240
<Folder Name="/playground/OpenAIEndToEnd/">
241241
<Project Path="playground/OpenAIEndToEnd/OpenAIEndToEnd.AppHost/OpenAIEndToEnd.AppHost.csproj" />

extension/.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@
1616
"${workspaceFolder}/dist/**/*.js"
1717
],
1818
"preLaunchTask": "${defaultBuildTask}"
19+
},
20+
{
21+
"name": "Run Extension (cli stop on entry)",
22+
"type": "extensionHost",
23+
"request": "launch",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}"
26+
],
27+
"outFiles": [
28+
"${workspaceFolder}/dist/**/*.js"
29+
],
30+
"preLaunchTask": "${defaultBuildTask}",
31+
"env": {
32+
"ASPIRE_CLI_STOP_ON_ENTRY": "true"
33+
}
1934
}
2035
]
2136
}

extension/build.ps1

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#!/usr/bin/env pwsh
2+
3+
$ErrorActionPreference = "Stop"
4+
5+
Write-Host "Checking prerequisites..."
6+
7+
# Check for Node.js
8+
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
9+
Write-Error "Error: Node.js is not installed. Please install Node.js first."
10+
exit 1
11+
}
12+
13+
# Check for npm
14+
if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
15+
Write-Error "Error: npm is not installed. Please install npm first."
16+
exit 1
17+
}
18+
19+
# Check for yarn
20+
if (-not (Get-Command yarn -ErrorAction SilentlyContinue)) {
21+
Write-Error "Error: yarn is not installed. Please install yarn first."
22+
Write-Host "You can install yarn by running: npm install -g yarn"
23+
exit 1
24+
}
25+
26+
# Check for VS Code
27+
if (-not (Get-Command code -ErrorAction SilentlyContinue)) {
28+
Write-Error "Error: VS Code is not installed or 'code' command is not in PATH."
29+
Write-Host "Please install VS Code and ensure it's added to your PATH."
30+
exit 1
31+
}
32+
33+
# Check for dotnet
34+
if (-not (Get-Command dotnet -ErrorAction SilentlyContinue)) {
35+
Write-Error "Error: .NET SDK is not installed. Please install .NET SDK first."
36+
Write-Host "Use the restore script at the repo root."
37+
exit 1
38+
}
39+
40+
Write-Host "All prerequisites satisfied."
41+
Write-Host ""
42+
Write-Host "Running yarn install..."
43+
yarn install
44+
45+
if ($LASTEXITCODE -ne 0) {
46+
Write-Error "yarn install failed with exit code $LASTEXITCODE"
47+
exit $LASTEXITCODE
48+
}
49+
50+
Write-Host ""
51+
Write-Host "Running yarn compile..."
52+
yarn compile
53+
54+
if ($LASTEXITCODE -ne 0) {
55+
Write-Error "yarn compile failed with exit code $LASTEXITCODE"
56+
exit $LASTEXITCODE
57+
}
58+
59+
Write-Host ""
60+
Write-Host "Building Aspire CLI..."
61+
dotnet build ../src/Aspire.Cli/Aspire.Cli.csproj
62+
63+
if ($LASTEXITCODE -ne 0) {
64+
Write-Error "dotnet build failed with exit code $LASTEXITCODE"
65+
exit $LASTEXITCODE
66+
}
67+
68+
Write-Host ""
69+
Write-Host "Build completed successfully!"

extension/build.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Checking prerequisites..."
5+
6+
# Check for Node.js
7+
if ! command -v node &> /dev/null; then
8+
echo "Error: Node.js is not installed. Please install Node.js first."
9+
exit 1
10+
fi
11+
12+
# Check for npm
13+
if ! command -v npm &> /dev/null; then
14+
echo "Error: npm is not installed. Please install npm first."
15+
exit 1
16+
fi
17+
18+
# Check for yarn
19+
if ! command -v yarn &> /dev/null; then
20+
echo "Error: yarn is not installed. Please install yarn first."
21+
echo "You can install yarn by running: npm install -g yarn"
22+
exit 1
23+
fi
24+
25+
# Check for VS Code
26+
if ! command -v code &> /dev/null; then
27+
echo "Error: VS Code is not installed or 'code' command is not in PATH."
28+
echo "Please install VS Code and ensure it's added to your PATH."
29+
exit 1
30+
fi
31+
32+
# Check for dotnet
33+
if ! command -v dotnet &> /dev/null; then
34+
echo "Error: .NET SDK is not installed. Please install .NET SDK first."
35+
echo "Use the restore script at the repo root."
36+
exit 1
37+
fi
38+
39+
echo "All prerequisites satisfied."
40+
echo ""
41+
echo "Running yarn install..."
42+
yarn install
43+
44+
echo ""
45+
echo "Running yarn compile..."
46+
yarn compile
47+
48+
echo ""
49+
echo "Building Aspire CLI..."
50+
dotnet build ../src/Aspire.Cli/Aspire.Cli.csproj
51+
52+
echo ""
53+
echo "Build completed successfully!"

extension/loc/xlf/aspire-vscode.xlf

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Aspire",
44
"description": "%extension.description%",
55
"publisher": "microsoft-aspire",
6-
"version": "0.4.0",
6+
"version": "0.4.1",
77
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
88
"icon": "dotnet-aspire-logo-128.png",
99
"license": "SEE LICENSE IN LICENSE.TXT",
@@ -182,6 +182,18 @@
182182
"default": true,
183183
"description": "%configuration.aspire.enableSettingsFileCreationPromptOnStartup%",
184184
"scope": "window"
185+
},
186+
"aspire.aspireCliExecutablePath": {
187+
"type": "string",
188+
"default": "",
189+
"description": "%configuration.aspire.aspireCliExecutablePath%",
190+
"scope": "machine-overridable"
191+
},
192+
"aspire.enableAspireCliDebugLogging": {
193+
"type": "boolean",
194+
"default": false,
195+
"description": "%configuration.aspire.enableAspireCliDebugLogging%",
196+
"scope": "window"
185197
}
186198
}
187199
}

extension/package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"command.deploy": "Deploy app",
1616
"command.configureLaunchJson": "Configure launch.json file",
1717
"configuration.aspire.enableSettingsFileCreationPromptOnStartup": "Enable apphost discovery on extension activation and prompt to setup .aspire/settings.json.appHostPath if it does not exist in the workspace.",
18+
"configuration.aspire.aspireCliExecutablePath": "The path to the Aspire CLI executable. If not set, the extension will attempt to use 'aspire' from the system PATH.",
19+
"configuration.aspire.enableAspireCliDebugLogging": "Enable console debug logging for Aspire CLI commands executed by the extension.",
1820
"command.runAppHost": "Run Aspire apphost",
1921
"command.debugAppHost": "Debug Aspire apphost",
2022
"aspire-vscode.strings.noCsprojFound": "No apphost found in the current workspace.",

extension/src/commands/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export async function addCommand(terminalProvider: AspireTerminalProvider) {
66
return;
77
}
88

9-
terminalProvider.sendToAspireTerminal("aspire add");
9+
terminalProvider.sendAspireCommandToAspireTerminal('add');
1010
}

extension/src/commands/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export async function configCommand(terminalProvider: AspireTerminalProvider) {
66
return;
77
}
88

9-
terminalProvider.sendToAspireTerminal("aspire config");
9+
terminalProvider.sendAspireCommandToAspireTerminal('config');
1010
}

extension/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export async function deployCommand(terminalProvider: AspireTerminalProvider) {
66
return;
77
}
88

9-
terminalProvider.sendToAspireTerminal("aspire deploy");
9+
terminalProvider.sendAspireCommandToAspireTerminal('deploy');
1010
}

0 commit comments

Comments
 (0)