дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
Plugin-owned run configurations can choose how the Run console gets the process output: separate stdout and stderr pipes (the default) or a pseudo-terminal, the same as Emulate terminal in output console. Static [[contributes.runDetectors]] take outputMode = "pty" or "pipes"; dynamic configurations come from the new optional execution-configurations export (a launch configuration plus its output mode, used instead of launch- and run-configurations when exported); run.start-with-options overrides the mode for one launch. A mode the user saved on the configuration wins over the per-launch override, which wins over the plugin's default. PTY is refused for test configurations, debug launches, remote run targets and redirected stdin files. On top of the contributor's work: merged main (API 1.18 was already open), rebuilt the components, and fixed the end-to-end PTY test, which didn't compile and then started configurations before they were loaded. Closes #4757 Co-authored-by: Akin01 <[email protected]>
42 рядки
891 B
TOML
42 рядки
891 B
TOML
id = "test.execution-output"
|
|
name = "Execution output mode fixture"
|
|
version = "0.1.0"
|
|
engines.openidea = "^1.18"
|
|
wasm = "dist/plugin.wasm"
|
|
activation = ["on-command:*"]
|
|
|
|
[capabilities]
|
|
required = ["storage", "project.read"]
|
|
optional = ["process:execution-tool"]
|
|
|
|
[[contributes.runDetectors]]
|
|
id = "detector-pty"
|
|
name = "Detector PTY"
|
|
files = ["execution-output.marker"]
|
|
command = "execution-tool"
|
|
args = ["pty-detector"]
|
|
outputMode = "pty"
|
|
|
|
[[contributes.runDetectors]]
|
|
id = "detector-pipes"
|
|
name = "Detector Pipes"
|
|
files = ["execution-output.marker"]
|
|
command = "execution-tool"
|
|
args = ["pipes-detector"]
|
|
outputMode = "pipes"
|
|
|
|
[[contributes.runConfigurations]]
|
|
files = ["execution-output.marker"]
|
|
|
|
[[contributes.commands]]
|
|
id = "start"
|
|
title = "Start with options"
|
|
|
|
[[contributes.commands]]
|
|
id = "start-legacy"
|
|
title = "Start legacy"
|
|
|
|
[[contributes.commands]]
|
|
id = "events"
|
|
title = "Events"
|