From 7ad939ec10f212723c08a3b708fa79e03c69576d Mon Sep 17 00:00:00 2001 From: Alex Tugarev Date: Wed, 5 Feb 2020 13:12:44 +0000 Subject: [PATCH] [plugin-host] change THEIA_ env exclusion filter to match `^THEIA_` instead of `THEIA_`. this allows to access `PREFIX_THEIA_SUFFIX` env vars in plug-ins. Fixes eclipse-theia/theia#7084 --- packages/core/src/node/messaging/ipc-protocol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/node/messaging/ipc-protocol.ts b/packages/core/src/node/messaging/ipc-protocol.ts index 153e88cb65658..5c6daec6fb707 100644 --- a/packages/core/src/node/messaging/ipc-protocol.ts +++ b/packages/core/src/node/messaging/ipc-protocol.ts @@ -45,7 +45,7 @@ export function checkParentAlive(): void { export const ipcEntryPoint = process.env[THEIA_ENTRY_POINT]; -const THEIA_ENV_REGEXP_EXCLUSION = new RegExp('THEIA_*'); +const THEIA_ENV_REGEXP_EXCLUSION = new RegExp('^THEIA_*'); export function createIpcEnv(options?: { entryPoint?: string env?: NodeJS.ProcessEnv