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:
Josh Johnson 2018-05-24 23:43:40 -04:00
parent d77e745897
commit f6456579bd
1 changed files with 2 additions and 1 deletions

View File

@ -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");
} }