mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	Workaround the python vscode extension's polyfill
This commit is contained in:
		
							parent
							
								
									f3cce5feea
								
							
						
					
					
						commit
						e05df93b8e
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user