дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 09:41:34 +02:00
events.subscribe-paths-with-options adds an optional debounce-ms (up to 5 s) that coalesces files-changed deltas on the host, so bursts of edits don't run a plugin's discovery again and again. workspace.project.generation returns a project's state generation, which moves on every file change; FilesChanged carries the project root and generation. Registering run targets or run configurations computed for a superseded generation fails with Error::Stale. A new project-closed event tells subscribed plugins a project closed after its queued events are dropped and its run targets and configurations are withdrawn. On top of the contributor's work: closing one project no longer cancels a plugin instance's in-flight work for other projects (an instance serves every project; results for the closed one are refused because its generation moved on), the generation is bumped on close, the generation is attached only for plugins declaring API 1.18 so older plugins' registrations are never refused, and the API now ships as part of 1.18 with the components rebuilt. Closes #4760 Co-authored-by: Akin01 <[email protected]>
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.