Файли
openidea/plugins/official/todo-finder
RuyimgByCN 979d19d066 feat(plugins): add database granular context menus and open-console/table APIs (#8121)
Plugin API 1.21 adds Database tool window context menus for data sources, schemas/databases and columns next to database.table.context, each item receiving the selected nodes, and database.open-console / database.open-table-data, which open the IDE's Query Console (SQL filled in, not run) or a table's data grid from a command the user invoked, after checking the source exists and the database capability is granted. The plugin UI reaches the Database feature through a new DatabaseService in the workbench contributions rather than importing it. Includes SDK methods and MockHost helpers, a fixture plugin with a host integration test, UI tests, regenerated bindings, rebuilt plugin components and README notes.

Co-authored-by: RuyimgByCN <[email protected]>
2026-12-05 04:29:49 +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.