Skip to content

Commit eea5fec

Browse files
code-asherZauberNerd
authored andcommitted
Add back sanitization of our env variables (microsoft#22)
This partially fixes coder/code-server#4519. We use an environment variable to distinguish the parent process from the child so without sanitizing when you spawn code-server from VS Code it always looks like we are in the parent and the process will fail since it is not actually the child.
1 parent 21a8dcd commit eea5fec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/base/common/processes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export function sanitizeProcessEnvironment(env: IProcessEnvironment, ...preserve
111111
/^VSCODE_.+$/,
112112
/^SNAP(|_.*)$/,
113113
/^GDK_PIXBUF_.+$/,
114+
/^CODE_SERVER_.+$/,
115+
/^CS_.+$/,
114116
];
115117
const envKeys = Object.keys(env);
116118
envKeys

0 commit comments

Comments
 (0)