Theia API Documentation v1.70.0
    Preparing search index...
    • Workaround: Node 21+ defines globalThis.navigator, which breaks VS Code extensions that use its absence to detect a Node.js environment. Unless explicitly opted in via THEIA_SUPPORT_NODE_GLOBAL_NAVIGATOR=true, override it with a getter that returns undefined to match VS Code behavior. See https://github.com/eclipse-theia/theia/issues/16233

      Parameters

      • env: Record<string, string | undefined> = process.env

        the environment variables to read the opt-in flag from

      • target: typeof globalThis = globalThis

        the object on which to override the navigator property (defaults to globalThis)

      Returns void