Skip to content

Commit 7741e3d

Browse files
committed
Auto merge of rust-lang#13448 - yotamofek:python-ext-polyfill-workaround, r=Veykril
Workaround the python vscode extension's polyfill Fixes rust-lang#13442 `String.replaceAll` and `String.replace` behave the same when given a (/g-flagged) Regex, so fix is very simple.
2 parents f3cce5f + e05df93 commit 7741e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Config {
191191
const VarRegex = new RegExp(/\$\{(.+?)\}/g);
192192

193193
export function substituteVSCodeVariableInString(val: string): string {
194-
return val.replaceAll(VarRegex, (substring: string, varName) => {
194+
return val.replace(VarRegex, (substring: string, varName) => {
195195
if (typeof varName === "string") {
196196
return computeVscodeVar(varName) || substring;
197197
} else {

0 commit comments

Comments
 (0)