We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e020716 commit 2d309ffCopy full SHA for 2d309ff
src/kernels/raw/launcher/kernelEnvVarsService.node.ts
@@ -140,7 +140,8 @@ export class KernelEnvironmentVariablesService {
140
// Keep a list of the kernelSpec variables that need to be substituted.
141
const kernelSpecVariablesRequiringSubstitution: Record<string, string> = {};
142
for (const [key, value] of Object.entries(kernelEnv || {})) {
143
- if (typeof value === 'string' && substituteEnvVars(value, process.env) !== value) {
+ // Detect placeholders regardless of current process.env; we'll resolve after merges.
144
+ if (typeof value === 'string' && /\${[A-Za-z]\w*(?:[^}\w].*)?}/.test(value)) {
145
kernelSpecVariablesRequiringSubstitution[key] = value;
146
delete kernelEnv[key];
147
}
0 commit comments