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({
|
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…
Reference in New Issue
Block a user