дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
- Add ui.notify-project: it shows only in that project's window (the most recently focused one if there are several) and works without a calling window - Button commands run in the window showing the notification; a closed project returns not-found, with nothing shown and no fallback to another window - Bump the plugin API to 1.5.0 (wit/, SDK copy, ENGINE_VERSION, API_VERSION) and rebuild all components - Add Project::notify and its mock to the SDK; update plugins/README.md Co-authored-by: LU XIANGRUI <[email protected]>
23 рядки
805 B
Plaintext
23 рядки
805 B
Plaintext
package openidea:[email protected];
|
|
|
|
/// Optional export (world `plugin-diagnostics`): problems in the current,
|
|
/// possibly unsaved document, for the languages declared with the
|
|
/// `diagnostics` provider kind. Asked shortly after a document opens or
|
|
/// changes, under the editor-provider budget; it can't ask the user.
|
|
interface diagnostics-provider {
|
|
use diagnostics.{diagnostic};
|
|
|
|
/// The document to check (the editor's text, unsaved edits included).
|
|
record document {
|
|
/// Absolute path.
|
|
path: string,
|
|
language: string,
|
|
version: u64,
|
|
text: string,
|
|
}
|
|
|
|
/// The document's problems, at most 5,000; they replace what this
|
|
/// provider reported before, and an empty list removes them.
|
|
diagnostics: func(doc: document) -> list<diagnostic>;
|
|
}
|