Files
openidea/plugins/official/todo-finder
Ainul YaqinandAkin01 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 <16496278+Akin01@users.noreply.github.com>
2026-11-22 14:11:13 +08:00
..
2026-11-09 08:40:40 +08:00

todo-finder — API 1.4 example

Run Example: Find TODOs, including from a search result's context menu. project.search-text supplies a list view; activating a row opens its location. The invoking window's status item combines the match count with diagnostics.problems. Both search and rendering use the invocation's project, so the example keeps no cross-window cache. Results are capped at 500.

Grant: project.read. Remote Problems snapshots are currently empty; text search still runs on the server. This is a small view/API example, not a TODO indexer or a replacement for Find in Files.

Build from the repository root:

plugins/build.sh official/todo-finder
cargo test --manifest-path plugins/official/todo-finder/Cargo.toml
cargo run -p ide-host --bin openidea-plugin -- check plugins/official/todo-finder

Install the built package folder through Settings › Plugins › Install from Disk. See the plugin guide and official/community policy.