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
@ -218,7 +218,8 @@ export class XmlTreeDataProvider implements TreeDataProvider<any> {
|
||||
this._xmlDocument = new DOMParser({
|
||||
errorHandler: () => {
|
||||
throw new Error("Invalid Document");
|
||||
}
|
||||
},
|
||||
locator: {}
|
||||
}).parseFromString(xml, "text/xml");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user