дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
Plugin API 1.21: - run-started events, and run-exited for user-launched plugin configurations (plugins on API 1.21 only). - run.stop(id) for runs of the plugin's own configurations; run.upsert-configuration and run.open-edit-configurations for the plugin's own run configuration types. - prepareCommand receives the run/debug mode; plugin configurations can declare a loopback JDWP attach target. - runConfigTypes.ownsBeforeLaunch, log file tabs in the run console (plugin_run_log_tail, authorised by the plugin's project.read / fs.read grants), and the runConsole.toolbar menu in the Run and Debug consoles. Review fixes: RunView log tab state keyed by the string session id, tail chunks cut on a UTF-8 boundary, user-run exits gated to API 1.21. Co-authored-by: RuyimgByCN <[email protected]>
35 рядки
1.2 KiB
Plaintext
35 рядки
1.2 KiB
Plaintext
package openidea:[email protected];
|
||
|
||
/// On-demand results for `[[contributes.searchCategories]]`. Optional, API 1.13.
|
||
interface search-provider {
|
||
use types.{error, location};
|
||
use invocation.{invocation};
|
||
|
||
record search-command {
|
||
/// A command declared by this plugin, without the host's prefix.
|
||
id: string,
|
||
arg: option<string>,
|
||
}
|
||
variant search-target {
|
||
/// A valid UTF-16 range inside the current project.
|
||
location(location),
|
||
command(search-command),
|
||
}
|
||
record search-item {
|
||
/// Stable within this plugin's category and query results.
|
||
id: string,
|
||
title: string,
|
||
description: option<string>,
|
||
target: search-target,
|
||
}
|
||
record search-page {
|
||
items: list<search-item>,
|
||
has-more: bool,
|
||
}
|
||
/// The category's local manifest id, raw query (at most 1024 UTF-8 bytes),
|
||
/// and requested maximum (1–200). Preserve ranking in the returned list.
|
||
/// Empty queries may return initial suggestions. This is a background call:
|
||
/// no prompts or implicit commands. Superseded queries are cancelled by the host.
|
||
search: func(category: string, query: string, limit: u32, ctx: borrow<invocation>) -> result<search-page, error>;
|
||
}
|