vscode-xml
vscode-xml copied to clipboard
Extension Performance issue
- Issue Type:
Bug - Extension Name:
xml - Extension Version:
2.5.0 - OS Version:
Linux x64 5.4.0-37-generic - VSCode version:
1.46.0
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 4773,
"activateCallTime": 11,
"activateResolvedTime": 0,
"activationReason": {
"startup": false,
"extensionId": {
"value": "DotJoshJohnson.xml",
"_lower": "dotjoshjohnson.xml"
},
"activationEvent": "onLanguage:xml"
}
},
"runtimeErrors": []
}
Also with VSCode version: 1.46.1
See also #301, #300, #296, #292, #272, #264
I came here to open a report because I have a 1.5MB XML file, and trying to format it appears to do nothing.
I believe what's happening is that the extension tries to do all the work in one big bite, takes longer than 5 seconds, and Code kills it and logs an error (visible under the Output tab, Log (Window) ).
Unfortunately I don't know if I can share the XML, which was produced by an internal system, but I suspect if you grab anything in the neighborhood of 2MB or bigger, you'll be able to reproduce this.