Файли
openidea/crates/ide-plugin/tests/fixtures/settings-pages
Ainul YaqinтаAkin01 ed6f264875 fix(plugins): provide lossless bounded streaming and configurable capture for processes (#4812)
Plugins running compilers, linters or large diffs lost output: `start` kept only a 1 MiB tail and `run`/`run-command` truncated stderr. API 1.15 adds `process-options` (`max-output-bytes` up to 128 MiB, `buffer-bytes` up to 4 MiB), `run-captured`, which fails explicitly when either stream overflows, and `start-stream`, which streams losslessly with pipe backpressure: readers pause at the buffer limit, resume as `poll`/`chunk` consume, and `wait` drains up to the total limit so fast producers don't deadlock. Overflow stops the process tree and records its exit status before reaping it. `run`, `run-command` and `start` behave as before, and 1.14 components still load.

Closes #4763

Co-authored-by: Akin01 <[email protected]>
2026-11-22 14:11:13 +08:00
..

Multi-page settings example (API 1.3)

Two IDE-rendered pages demonstrate grouped string lists and an editable model profile table. Test first applies pending settings, then runs the declared test command. With no profiles it returns an inline error; after adding a row it reads the saved JSON array and reports success through a notification. This fixture checks the settings/action flow; it does not contact a provider.

Build with plugins/build.sh crates/ide-plugin/tests/fixtures/settings-pages. Install or link this directory with openidea-plugin link and open Settings › Plugins › Model Profiles. Edit without Apply and Cancel to discard; Apply or OK saves. Running Test also saves pending edits before the command, so Cancel after Test does not undo those already-applied edits.

API keys belong in [[contributes.secrets]], never table cells. A real Test connection command can use host::fetch with the appropriate declared network capability and secret-backed headers.