дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-25 02:44:37 +02:00
A plugin's completion was asked once when the popup opened; the editor then only filtered that list, so completions built from what is typed could not be offered. A new optional export, completion-list-provider, returns the items with an incomplete flag and is called instead of providers.completion for that plugin. While the user types on in the same word, only the plugins that marked their list incomplete are asked again; the language server's list and the other plugins' items from the first request are kept. A new word, a trigger character or an incomplete server list asks everyone, as before. API 1.15 shipped with v0.1.51, so this starts API 1.16: wit/ and the SDK copy move to @1.16.0 with ENGINE_VERSION and API_VERSION, and the checked-in components are rebuilt. Closes #4970 Co-authored-by: Rhombicdodecahedron <[email protected]>
22 рядки
858 B
Plaintext
22 рядки
858 B
Plaintext
package openidea:[email protected];
|
|
|
|
/// What other plugins contributed to the extension points this plugin declares
|
|
/// (`[[extension-points]]` in `plugin.toml`; the contributors list this plugin
|
|
/// in `[[depends]]`). A change is announced by the `extensions-changed` event.
|
|
interface extensions {
|
|
use types.{error};
|
|
|
|
record contribution {
|
|
/// The contributing plugin's id.
|
|
plugin: string,
|
|
/// Its `[[contributes."<point>"]]` table as JSON, checked by the host
|
|
/// against the fields the point declares.
|
|
data: string,
|
|
}
|
|
|
|
/// The contributions to `point`, in the order the plugins started. Only the
|
|
/// plugin that declares `point` may read it (`denied` otherwise); `not-found`
|
|
/// when no running plugin declares it.
|
|
contributions: func(point: string) -> result<list<contribution>, error>;
|
|
}
|