forked from external/vscode-xml
		
	Fix Cursor Sync Regression
There is a weird quirk with the DOMParser constructor. If we pass in any options, we need to ensure the locator is defined.
This commit is contained in:
		
							parent
							
								
									d77e745897
								
							
						
					
					
						commit
						f6456579bd
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -218,7 +218,8 @@ export class XmlTreeDataProvider implements TreeDataProvider<any> {
 | 
				
			||||||
            this._xmlDocument = new DOMParser({
 | 
					            this._xmlDocument = new DOMParser({
 | 
				
			||||||
                errorHandler: () => {
 | 
					                errorHandler: () => {
 | 
				
			||||||
                    throw new Error("Invalid Document");
 | 
					                    throw new Error("Invalid Document");
 | 
				
			||||||
                }
 | 
					                },
 | 
				
			||||||
 | 
					                locator: {}
 | 
				
			||||||
            }).parseFromString(xml, "text/xml");
 | 
					            }).parseFromString(xml, "text/xml");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue