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 0e74e08 commit eabe828Copy full SHA for eabe828
src/configuration.ts
@@ -487,7 +487,8 @@ const configuration = {
487
488
const vsCodeVariableRegex = new RegExp(/\$\{(.+?)\}/g);
489
export function substituteVariablesInString(val: string): string {
490
- return val.replace(vsCodeVariableRegex, (substring: string, varName: string) =>
+ // Fallback to "" incase someone explicitly sets to null
491
+ return (val || "").replace(vsCodeVariableRegex, (substring: string, varName: string) =>
492
typeof varName === "string" ? computeVscodeVar(varName) || substring : substring
493
);
494
}
0 commit comments