@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
22 lines • 1.12 kB
TypeScript
import { MaybePromise } from './types';
export declare const RemoteCliArgsContribution: unique symbol;
/**
* Frontend contribution that provides additional CLI arguments to pass to a remote backend
* started for the *current* window (e.g. when attaching to a dev container).
*
* This lets per-window CLI options (such as `--session-preference`) that were forwarded to a
* window be re-applied on the remote backend. Unlike the node-side `RemoteCliContribution#enhanceArgs`,
* which reads process-global state on the shared backend, this contribution runs in the renderer and
* therefore has access to the current window's context.
*
* @experimental
*/
export interface RemoteCliArgsContribution {
/**
* Returns the extra CLI arguments to append when starting a remote backend for the current
* window. Implementations should return an empty array when they have nothing to contribute
* (e.g. for a regular cold-start window whose args are already applied by the shared backend).
*/
getRemoteCliArgs(): MaybePromise<string[]>;
}
//# sourceMappingURL=remote-cli-args-contribution.d.ts.map