Файли
openidea/plugins/official/todo-finder
Deng Liuтаdengliu 22fe1702be feat(plugins): dynamic file and folder icons by path (API 1.8) (#3257)
Static [[contributes.fileIcons]] entries match file names only, so a plugin could not tell a Helm chart folder, its templates or a Kustomize overlay from any other YAML file or folder. API 1.8 adds decorations.set-file-icon and the batched set-file-icons (up to 10,000 paths per set, requires project.read): a plugin assigns one of its declared file icons to an exact file or plain-folder path, shown in the project tree and editor tabs after the user's own file type icons. Under engines.openidea = "^1.8" a fileIcons entry may omit patterns, for icons used only this way. Both WIT copies, the SDK (host functions and mock), the plugins README and the bundled components are updated.

Co-authored-by: dengliu <[email protected]>
2026-11-14 07:20:33 +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.