mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
Workaround the python vscode extension's polyfill
This commit is contained in:
parent
f3cce5feea
commit
e05df93b8e
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ export class Config {
|
||||||
const VarRegex = new RegExp(/\$\{(.+?)\}/g);
|
const VarRegex = new RegExp(/\$\{(.+?)\}/g);
|
||||||
|
|
||||||
export function substituteVSCodeVariableInString(val: string): string {
|
export function substituteVSCodeVariableInString(val: string): string {
|
||||||
return val.replaceAll(VarRegex, (substring: string, varName) => {
|
return val.replace(VarRegex, (substring: string, varName) => {
|
||||||
if (typeof varName === "string") {
|
if (typeof varName === "string") {
|
||||||
return computeVscodeVar(varName) || substring;
|
return computeVscodeVar(varName) || substring;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue