Theia API Documentation v1.76.0
    Preparing search index...

    Options passed to the main/default command handler.

    interface ElectronMainCommandOptions {
        claimed?: boolean;
        cwd: string;
        file?: string;
        launchArgs?: LaunchArguments;
        secondInstance: boolean;
    }
    Index

    Properties

    claimed?: boolean

    Whether an ElectronMainApplicationContribution has claimed this launch via its claimsWindow hook (e.g. a --attach-container launch claimed by @theia/dev-container). When set, an empty window is opened instead of restoring the last workspace, since the window is about to be replaced by whatever the claiming contribution attaches to.

    cwd: string
    file?: string

    By default, the first positional argument. Should be either a relative or absolute file-system path pointing to a file or a folder.

    launchArgs?: LaunchArguments

    The parsed CLI options of a forwarded launch. Set for second-instance launches so that per-window options (e.g. --attach-container, --session-preference) are carried to the newly created window rather than being dropped.

    secondInstance: boolean

    If the app is launched for the first time, secondInstance is false. If the app is already running but user relaunches it, secondInstance is true.