mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
Plugins read problems from a host-owned snapshot that records every Diagnostics event per file and producer, instead of the UI-reported Problems reports, so what a plugin sees no longer depends on window lifetime or the invoking window. Adds the problems-changed workbench event (plugin API 1.8.0, gated at needs_api 8), editor focus events for files of other windows, severity style previews in plugin settings, and lays plugin annotations on the line-end chain before code-vision hints and inline blame. Components and fixtures are rebuilt for API 1.8.0. Co-authored-by: muutot <92625353+muutot@users.noreply.github.com>
17 lines
725 B
Plaintext
17 lines
725 B
Plaintext
package openidea:plugin@1.8.0;
|
|
|
|
/// Discovery of the IDE's built-in MCP server; never exposes its URL or token.
|
|
interface mcp {
|
|
/// Stdio bridge argv for the invoking project; none without a window/project or while off.
|
|
stdio-command: func() -> option<list<string>>;
|
|
}
|
|
|
|
/// Optional tools declared by contributes.mcpTools, under the plugin's grants and command budget.
|
|
interface mcp-provider {
|
|
use types.{error};
|
|
use invocation.{invocation};
|
|
/// Calls the declared local tool name with JSON arguments and the project's window context.
|
|
/// Returns text; tools may encode structured data as JSON text.
|
|
call: func(tool: string, arguments: string, ctx: borrow<invocation>) -> result<string, error>;
|
|
}
|