дзеркало
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]>
30 рядки
1.0 KiB
Plaintext
30 рядки
1.0 KiB
Plaintext
package openidea:[email protected];
|
|
|
|
/// Optional export (API 1.16, world `plugin-completion-list`): completion that
|
|
/// can say its list is incomplete. A plugin exporting it is called instead of
|
|
/// `providers.completion` for its `completion` provider kind.
|
|
interface completion-list-provider {
|
|
use types.{position};
|
|
use providers.{document, completion-item};
|
|
|
|
record completion-list {
|
|
items: list<completion-item>,
|
|
/// Typing on in the same word asks this plugin again (with the new text)
|
|
/// instead of filtering these items. Other providers' items are kept.
|
|
incomplete: bool,
|
|
}
|
|
|
|
completion: func(doc: document, at: position, trigger: option<string>) -> completion-list;
|
|
}
|
|
|
|
/// The optional export-only world the SDK merges with `plugin`.
|
|
world completion-list-exports {
|
|
export completion-list-provider;
|
|
}
|
|
|
|
/// The host-side world used to instantiate a component that exports it.
|
|
world plugin-completion-list {
|
|
include plugin;
|
|
export completion-list-provider;
|
|
}
|