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

    Implements

    Index

    Constructors

    Properties

    CliPreferences: CliPreferences
    launchArgs: WindowLaunchArgs
    logger: ILogger
    preferenceService: PreferenceService

    Methods

    • Overlays overrides onto base, later entries winning per key while preserving order (base first).

      Parameters

      • base: readonly [string, unknown][]
      • overrides: readonly [string, unknown][]

      Returns [string, unknown][]

    • Resolves the CLI-provided preferences to apply to this window.

      The shared backend reflects the original cold-start launch (it cannot distinguish between windows), so it supplies the process-wide CLI preferences. A forwarded (second-instance) window additionally carries its own options, provided by the trusted main process, and layers them on top, overriding by key. Merging (rather than replacing) means a plain second-instance window keeps the process-wide values instead of dropping them, while an attach window still gets its own overrides.

      Returns Promise<{ persistent: [string, unknown][]; session: [string, unknown][] }>