Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ An **AppHost** defines your app in code: services, containers, databases, front
## A better inner dev loop

- **Run your apps:** Start, debug, and stop an Aspire application, or use the available start, stop, and restart actions for individual resources, from the Aspire view.
- **Debug across your stack:** Aspire debug sessions support C#, JavaScript, Python, Go, Java, and Rust application resources when the corresponding debugger is available. Java and Rust debugging require Aspire 13.6 or later.
- **Debug across your stack:** Aspire debug sessions support C#, JavaScript, Python, Go, Java, and Rust application resources when the corresponding debugger is available. Java and Rust debugging require Aspire 13.6 or later. Go AppHosts (`apphost.go`) are debugged with the Go extension's Delve adapter when the Go extension is installed.
- **Attach to running resources:** Attach to .NET and Go resources from the Aspire view. If a debugger extension is missing or disabled, open Extensions from the notification, install or enable it, and retry without restarting the AppHost.
- **See live health and analytics:** Open the Aspire dashboard for resource health, endpoints, console logs, structured logs, distributed traces, and metrics.
- **Monitor without leaving VS Code:** See resource health summaries and quick actions beside resource definitions in your AppHost.
Expand Down
12 changes: 12 additions & 0 deletions extension/loc/xlf/aspire-vscode.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"workspaceContains:**/apphost.mjs",
"workspaceContains:**/apphost.cjs",
"workspaceContains:**/apphost.rs",
"workspaceContains:**/apphost.go",
"workspaceContains:**/AppHost.java",
"workspaceContains:**/apphost.java",
"workspaceContains:**/src/main/java/AppHost.java",
Expand Down Expand Up @@ -869,12 +870,12 @@
"explorer/context": [
{
"command": "aspire-vscode.runAppHostFromExplorer",
"when": "resourceFilename =~ /apphost\\.(cs|ts|mts|cts|js|mjs|cjs|rs|java)$/i",
"when": "resourceFilename =~ /apphost\\.(cs|ts|mts|cts|js|mjs|cjs|rs|java|go)$/i",
"group": "aspire_actions@1"
},
{
"command": "aspire-vscode.debugAppHostFromExplorer",
"when": "resourceFilename =~ /apphost\\.(cs|ts|mts|cts|js|mjs|cjs|rs|java)$/i",
"when": "resourceFilename =~ /apphost\\.(cs|ts|mts|cts|js|mjs|cjs|rs|java|go)$/i",
"group": "aspire_actions@2"
}
],
Expand Down
4 changes: 4 additions & 0 deletions extension/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@
"aspire-vscode.strings.javaAttachNotSupported": "Java resources are started by the IDE rather than attached to, and the app host requested an attach session. Aspire cannot start one because no debug address is available.",
"aspire-vscode.strings.javaDebuggerExtensionNotInstalled": "Java AppHosts require Java debugger support. Set up {0} in the Extensions view, then start the AppHost again.",
"aspire-vscode.strings.rustDebuggerExtensionNotInstalled": "Rust AppHosts require native debugger support. Set up {0} in the Extensions view, then start the AppHost again.",
"aspire-vscode.strings.goDisplayName": "Go: {0}",
"aspire-vscode.strings.goLabel": "Go",
"aspire-vscode.strings.goDebuggerExtensionNotInstalled": "Go AppHosts require Go debugger support. Set up {0} in the Extensions view, then start the AppHost again.",
"aspire-vscode.strings.goAppHostCommandNotRecognized": "The Go AppHost launch command was not recognized and cannot be debugged.",
"aspire-vscode.strings.javaDisplayName": "Java: {0}",
"aspire-vscode.strings.javaLabel": "Java",
"aspire-vscode.strings.codeLensSpringBootDashboardBypassesAspire": "⚠️ Do not start this app from the Spring Boot Dashboard; it bypasses Aspire",
Expand Down
5 changes: 5 additions & 0 deletions extension/src/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type Capability =
| 'ms-python.python' // Older AppHost versions used this extension identifier instead of python
| 'go' // Support for running Go projects
| 'golang.go' // Older AppHost versions used this extension identifier instead of go
| 'go-apphost.v1' // Support for debugging Go AppHosts through the Go extension's Delve adapter
| 'rust' // Support for running Rust projects
| 'ms-vscode.cpptools' // Rust debug adapter extension identifier on Windows (cppvsdbg)
| 'vadimcn.vscode-lldb' // Rust debug adapter extension identifier on macOS/Linux (CodeLLDB)
Expand Down Expand Up @@ -245,6 +246,10 @@ export function getSupportedCapabilities(platform: NodeJS.Platform = process.pla
if (isGoInstalled()) {
capabilities.push("go");
capabilities.push("golang.go");
// `go` only means "can debug Go resources", and extension builds that cannot launch a Go AppHost
// advertise it too. The CLI gates AppHost launching on this separate versioned name so those
// builds are never asked to start apphost.go (they would hand it to the .NET debugger).
capabilities.push("go-apphost.v1");
}

if (isRustInstalled(platform)) {
Expand Down
Loading
Loading