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
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 viaTHEIA_SUPPORT_NODE_GLOBAL_NAVIGATOR=true, override it with a getter that returnsundefinedto match VS Code behavior. See https://github.com/eclipse-theia/theia/issues/16233