Skip to content

Commit

Permalink
[plugin-host] change THEIA_ env exclusion filter
Browse files Browse the repository at this point in the history
to match `^THEIA_` instead of `THEIA_`. this allows to access `PREFIX_THEIA_SUFFIX` env vars in plug-ins.

Fixes eclipse-theia#7084
  • Loading branch information
AlexTugarev authored and Sean Hellum committed Mar 12, 2020
1 parent 44dbe22 commit 7ad939e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/node/messaging/ipc-protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ad939e

Please sign in to comment.