mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-18 16:08:55 +00:00
Plugin run configurations could not set environment variables, and Debug only worked when a source file in the arguments let the IDE infer a debugger, so a plugin could run `func start` for an Azure Functions app but not debug the worker it starts. API 1.9 adds the optional `launch-configurations` export, preferred over `run-configurations` when a component has both. Each configuration can add environment variables (only names the IDE's environment doesn't already have, like `process` commands) and name a debugger: launch the program under a language's debugger, or run it and attach to the first process of an Attach to Process kind that the run starts. Only the run's own descendants are candidates; the IDE waits up to a minute while the run lasts and otherwise leaves it running without the debugger. Remote projects resolve the process on the server. The SDK gets `LaunchConfigurations` / `launch_configurations`, the README and docs describe the export, and the bundled components and fixtures are rebuilt for 1.9.
30 lines
948 B
Plaintext
30 lines
948 B
Plaintext
package openidea:plugin@1.9.0;
|
|
|
|
/// Optional export (world `plugin-hover`): Markdown added to the hover of
|
|
/// documents of the languages declared with the `hover` provider kind,
|
|
/// including languages the plugin doesn't contribute. It shows below the
|
|
/// language server's hover, under the edit-path budget.
|
|
interface hover-provider {
|
|
use types.{position, range};
|
|
|
|
/// The document hovered (the editor's text while it is open).
|
|
record document {
|
|
/// Absolute path.
|
|
path: string,
|
|
language: string,
|
|
version: u64,
|
|
text: string,
|
|
}
|
|
|
|
/// What the plugin adds to the hover.
|
|
record hover-content {
|
|
/// At most 64 KiB.
|
|
markdown: string,
|
|
/// The text the hover describes; used when the server names none.
|
|
range: option<range>,
|
|
}
|
|
|
|
/// The hover at `at`, or `none` to add nothing.
|
|
hover: func(doc: document, at: position) -> option<hover-content>;
|
|
}
|