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({
|
||||
errorHandler: () => {
|
||||
throw new Error("Invalid Document");
|
||||
}
|
||||
},
|
||||
locator: {}
|
||||
}).parseFromString(xml, "text/xml");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue