дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +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]>
41 рядки
1.4 KiB
Plaintext
41 рядки
1.4 KiB
Plaintext
package openidea:[email protected];
|
|
|
|
/// Optional export (world `plugin-hover-actions`): clickable actions rendered
|
|
/// at the left edge of a line and revealed while the pointer is in the leftmost
|
|
/// editing-area strip of the action's line range.
|
|
interface hover-actions {
|
|
use language-features.{document};
|
|
|
|
/// An action drawn at the left edge of `line`.
|
|
record hover-action {
|
|
/// The line the button is drawn on; normally the declaration line.
|
|
line: u32,
|
|
/// First line whose left strip reveals this action, inclusive.
|
|
start-line: u32,
|
|
/// Last line whose left strip reveals this action, inclusive.
|
|
end-line: u32,
|
|
/// Optional icon: a registered icon name or a declared manifest SVG path.
|
|
icon: option<string>,
|
|
/// Text shown when no icon is present, or beside the icon.
|
|
label: string,
|
|
tooltip: option<string>,
|
|
/// This plugin's declared command.
|
|
command: string,
|
|
argument: option<string>,
|
|
}
|
|
|
|
/// Actions for the visible document, under the editor-provider budget.
|
|
hover-actions: func(doc: document) -> list<hover-action>;
|
|
}
|
|
|
|
/// The optional export-only world the SDK merges with `plugin`.
|
|
world hover-actions-provider {
|
|
export hover-actions;
|
|
}
|
|
|
|
/// The host-side world used to instantiate a component that exports it.
|
|
world plugin-hover-actions {
|
|
include plugin;
|
|
export hover-actions;
|
|
}
|