Interface HostedInstanceManager

Is responsible for running and handling separate Theia instance with given plugin.

interface HostedInstanceManager {
    debug(pluginUri, debugConfig): Promise<URI>;
    getInstanceURI(): URI;
    getPluginURI(): URI;
    isPluginValid(uri): Promise<boolean>;
    isRunning(): boolean;
    run(pluginUri, port?): Promise<URI>;
    terminate(): void;
}

Implemented by

Methods

  • Runs specified by the given uri plugin in separate Theia instance.

    Parameters

    • pluginUri: URI

      uri to the plugin source location

    • Optional port: number

      port on which new instance of Theia should be run. Optional.

    Returns Promise<URI>

    uri where new Theia instance is run