дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
Unity projects get a debug-only "Unity Editor" run configuration, selected by default. Debug opens a picker of local Unity Editor processes with the current project first; Run > Attach to Unity Process is also available. The tool installer fetches the pinned Unity Debugger 3.0.1 adapter with SHA-256 verification, and the session reports ready once the Mono runtime is up. A missing Mono executable on macOS and Linux is reported in the picker. Refs #1436 Co-authored-by: sliencio <[email protected]>
14 рядки
508 B
TypeScript
14 рядки
508 B
TypeScript
import { executeAction, getAction } from "@/platform/actions";
|
|
import type { RunConfig } from "@/platform/ipc";
|
|
import { notifications } from "@/workbench/contributions";
|
|
|
|
export const UNITY_CONFIG_KIND = "unity-editor";
|
|
|
|
export async function showUnityAttach(config?: RunConfig): Promise<void> {
|
|
if (!getAction("debug.attachUnity")) {
|
|
notifications().notify({ group: "run", level: "warning", title: "Debugger is not available" });
|
|
return;
|
|
}
|
|
await executeAction("debug.attachUnity", config);
|
|
}
|