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.
17 lines
874 B
Plaintext
17 lines
874 B
Plaintext
package openidea:plugin@1.9.0;
|
|
|
|
/// Embedded languages. The host routes plugin providers and configured language
|
|
/// servers inside these ranges, preserving host-document UTF-16 coordinates.
|
|
/// Each LSP range gets its own masked, in-memory sibling document (at most 32
|
|
/// per host document, documents over 2 MiB excluded). No file is written.
|
|
/// Formatting and rename continue to use the host language's server.
|
|
interface injections {
|
|
/// A versioned document snapshot. Coordinates are zero-based UTF-16.
|
|
record document { path: string, language: string, version: u64, text: string }
|
|
/// A host-document range containing the named language.
|
|
record injection { range: range, language: string }
|
|
use types.{range};
|
|
/// Embedded ranges, refreshed after edits under the editor-provider budget.
|
|
injections: func(doc: document) -> list<injection>;
|
|
}
|