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.
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
package openidea:plugin@1.9.0;
|
|
|
|
/// Optional export (world `plugin-inlay-hints`): inline hints in documents of
|
|
/// the languages declared with the `inlay-hints` provider kind, including
|
|
/// languages the plugin doesn't contribute. They are shown next to the
|
|
/// language server's hints.
|
|
interface inlay-hints-provider {
|
|
use types.{position, range};
|
|
|
|
/// The document the hints are for (the editor's text while it is open).
|
|
record document {
|
|
path: string,
|
|
language: string,
|
|
version: u64,
|
|
text: string,
|
|
}
|
|
|
|
/// A hint shown at `position`, before the character there.
|
|
record inlay-hint {
|
|
/// UTF-16 position (0-based line and column).
|
|
position: position,
|
|
/// The text shown, e.g. `GET /orders` or `: string`.
|
|
label: string,
|
|
/// `type` or `parameter` follow the Inlay Hints settings of that kind;
|
|
/// anything else counts as `other`.
|
|
kind: string,
|
|
/// Shown when the pointer rests on the hint.
|
|
tooltip: option<string>,
|
|
/// A space before the label.
|
|
padding-left: bool,
|
|
/// A space after the label.
|
|
padding-right: bool,
|
|
}
|
|
|
|
/// The hints within `range` (the visible part of the document), under the
|
|
/// edit-path budget. Hints outside `range` are dropped; at most 10,000 per
|
|
/// call.
|
|
inlay-hints: func(doc: document, range: range) -> list<inlay-hint>;
|
|
}
|