дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
Plugin API 1.20 adds wit/database.wit with describe-table behind the database.schema capability: a read-only view of a connected source's table (columns, keys, indexes) through DbManager::connected_table_details. Plugins can contribute database.table.context menu entries (needs_api 20) that receive the non-secret table identity and the when keys databaseDriver, databaseObjectKind, databaseSchema, databaseTable and databaseSelectionCount. Co-authored-by: gejun123456 <[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;
|
|
}
|