about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYotam Ofek <yotam.ofek@gmail.com>2022-10-20 17:56:51 +0000
committerYotam Ofek <yotam.ofek@gmail.com>2022-10-20 17:56:51 +0000
commite05df93b8ee0936c37df8e368817dc201e07fb75 (patch)
tree2dddb5731a7f92d8af9bbe53bf770720f3556222
parentf3cce5feea047e61af84f371072a021a333ba69f (diff)
downloadrust-e05df93b8ee0936c37df8e368817dc201e07fb75.tar.gz
rust-e05df93b8ee0936c37df8e368817dc201e07fb75.zip
Workaround the python vscode extension's polyfill
-rw-r--r--editors/code/src/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index 10e243dc896..0aa998db625 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -191,7 +191,7 @@ export class Config {
 const VarRegex = new RegExp(/\$\{(.+?)\}/g);
 
 export function substituteVSCodeVariableInString(val: string): string {
-    return val.replaceAll(VarRegex, (substring: string, varName) => {
+    return val.replace(VarRegex, (substring: string, varName) => {
         if (typeof varName === "string") {
             return computeVscodeVar(varName) || substring;
         } else {