Protected ReadonlyappProtected ReadonlycliProtected ReadonlycontributionsProtected ReadonlyearlyProtected ReadonlyloggerProtected ReadonlyprocessProtected ReadonlyrootProtected ReadonlystopwatchProtectedconfigureProtectedgetOptionalssl: booleanProtectedgracefulPerforms an asynchronous shutdown of the backend in two phases:
@preDestroy
hooks.Each phase has its own SHUTDOWN_TIMEOUT_MS budget to avoid hanging on a misbehaving hook. Late-resolving promises from a timed-out phase may still settle in the background and could log noisily or interact with a partly unbound container; this is accepted because the process is exiting.
Child processes that are still running after both phases are then killed, see
ProcessUtils.terminateChildProcessTrees, while the event loop is still
available, so that the process.on('exit') handler does not have to do it
synchronously.
Idempotent: a second invocation is a no-op. Exits the process with code 1, so
the process.on('exit') handler runs; it does not re-invoke contribution
onStop() hooks that this method already dispatched, nor the termination of
child processes.
ProtectedhandleProtectedinitProtectedinitializeProtectedmeasureProtectedmeasureProtectedonProtectedserveOptionalport: numberOptionalhostname: stringProtectedstop
The main entry point for Theia applications.