vscode-xml icon indicating copy to clipboard operation
vscode-xml copied to clipboard

Extension Performance issue

Open devhammed opened this issue 5 years ago • 2 comments

  • 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": []
}

devhammed avatar Jun 15 '20 12:06 devhammed

Also with VSCode version: 1.46.1

rettinghaus avatar Jun 23 '20 14:06 rettinghaus

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.

thw0rted avatar Jul 22 '20 13:07 thw0rted