Theia API Documentation v1.76.0
    Preparing search index...
    interface ElectronMainApplicationContribution {
        claimsWindow?(args: LaunchArguments): MaybePromise<boolean>;
        onStart?(application: ElectronMainApplication): MaybePromise<void>;
        onStop?(application: ElectronMainApplication): void;
    }

    Implemented by

    Index

    Methods

    • Experimental

      Whether this contribution claims responsibility for a window opened for the given launch, e.g. a --attach-container launch claimed by @theia/dev-container. A claimed launch opens an empty window rather than restoring the last workspace, since the window is about to be replaced by whatever the claiming contribution attaches to. Core itself stays agnostic of the concrete CLI options. The frontend receives the same options (see LaunchArgsStore), so the corresponding frontend contribution can show a placeholder from the first paint.

      Parameters

      Returns MaybePromise<boolean>