Protected Readonly_Protected_ProtectedactiveReadonlybackendProtected ReadonlycontributionsProtected OptionalcustomProtecteddidProtected ReadonlyelectronProtectedelectronProtected ReadonlyelectronProtected ReadonlyglobalsProtected OptionalinitialProtectedisProtected ReadonlylaunchProtectedprocessProtectedrestartingProtected ReadonlystopwatchProtecteduseProtected ReadonlywindowProtectedwindowsProtectedattachProtectedattachSave the window geometry state on every change.
ProtectedavoidProtectedconfigureUse this rather than creating BrowserWindow instances from scratch, since some security parameters need to be set, this method will do it.
ProtectedcreateProtecteddetermineProtectedgetReturn a string unique to the current display layout.
ProtectedgetProtectedgetProtectedgetProtectedgetProtectedgetReturns the display where a new window should be opened. Attempts to use the display nearest to the cursor position for multi-monitor setups. Falls back to the primary display if cursor position cannot be determined (e.g., on Wayland before any window is opened). See: https://github.com/eclipse-theia/theia/issues/16582
ProtectedgetExperimentalReturns the parsed launch options stored for the window with the given webContents id, or
undefined for a cold-start window. Read from the per-window metadata channel, where the
caller is identified by the IPC sender, so a window can only ever see its own options.
ProtectedgetProtectedget'native' or 'custom'
ProtectedhandleProtectedhookProtectedisProtectedisProtectedisDetects if the current session is running natively under Wayland (i.e., not using X11 fallback/XWayland).
ProtectedisExperimentalWhether any ElectronMainApplicationContribution claims responsibility for a window
opened for the given launch (see its claimsWindow hook). Core stays agnostic of the concrete
CLI options; e.g. @theia/dev-container claims --attach-container launches.
ProtectedmakeProtectedonProtectedonProtectedonProtectedonOptionalparams: WindowSearchParamsOptionallaunchArgs: LaunchArgumentsProtectedopenOptionallaunchArgs: LaunchArguments"Gently" close all windows, application will not stop if a beforeunload handler returns false.
ProtectedreuseProtectedsaveProtectedsaveProtectedshowProtectedstartStart the NodeJS backend server.
Running server's port promise.
ProtectedstartProtectedstashExperimentalAssociates the parsed options of a forwarded launch with the target window before it loads its URL, so that the preload script cannot ask for them before they are stored. No-op for a cold-start launch, which carries none.
OptionallaunchArgs: LaunchArgumentsProtectedstop
Used to temporarily store the reference to an early created main window