Skip to content

Commit c2a251c

Browse files
authored
Add back sanitization of our env variables (#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 5e0c6f3 commit c2a251c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/base/common/processes.ts

+2
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)