mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-19 00:10:00 +00:00
Plugin run configurations could not set environment variables, and Debug only worked when a source file in the arguments let the IDE infer a debugger, so a plugin could run `func start` for an Azure Functions app but not debug the worker it starts. API 1.9 adds the optional `launch-configurations` export, preferred over `run-configurations` when a component has both. Each configuration can add environment variables (only names the IDE's environment doesn't already have, like `process` commands) and name a debugger: launch the program under a language's debugger, or run it and attach to the first process of an Attach to Process kind that the run starts. Only the run's own descendants are candidates; the IDE waits up to a minute while the run lasts and otherwise leaves it running without the debugger. Remote projects resolve the process on the server. The SDK gets `LaunchConfigurations` / `launch_configurations`, the README and docs describe the export, and the bundled components and fixtures are rebuilt for 1.9.
65 lines
1.1 KiB
TOML
65 lines
1.1 KiB
TOML
id = "execution"
|
|
name = "Plugin execution tests"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.9"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*"]
|
|
[capabilities]
|
|
required = ["storage", "project.read"]
|
|
optional = ["process:execution-tool"]
|
|
[[contributes.runDetectors]]
|
|
id = "detected"
|
|
name = "Detected test"
|
|
files = ["execution.marker"]
|
|
command = "execution-tool"
|
|
args = ["test"]
|
|
test = true
|
|
framework = "plugin"
|
|
[[contributes.runConfigurations]]
|
|
files = ["execution.marker"]
|
|
|
|
[[contributes.commands]]
|
|
id = "run"
|
|
title = "run"
|
|
|
|
[[contributes.commands]]
|
|
id = "debug"
|
|
title = "debug"
|
|
|
|
[[contributes.commands]]
|
|
id = "terminal"
|
|
title = "terminal"
|
|
|
|
[[contributes.commands]]
|
|
id = "write"
|
|
title = "write"
|
|
|
|
|
|
|
|
[[contributes.commands]]
|
|
id = "content"
|
|
title = "content"
|
|
|
|
[[contributes.commands]]
|
|
id = "diff"
|
|
title = "diff"
|
|
|
|
[[contributes.commands]]
|
|
id = "events"
|
|
title = "events"
|
|
|
|
[[contributes.commands]]
|
|
id = "target"
|
|
title = "target"
|
|
[[contributes.commands]]
|
|
id = "untarget"
|
|
title = "untarget"
|
|
|
|
[[contributes.commands]]
|
|
id = "target-overrides"
|
|
title = "target-overrides"
|
|
|
|
[[contributes.commands]]
|
|
id = "validation"
|
|
title = "validation"
|