DotJoshJohnson / vscode-xml

XML Tools for Visual Studio Code
MIT License
320 stars 87 forks source link

Extension Performance issue #311

Open devhammed opened 4 years ago

devhammed commented 4 years ago
{
    "messages": [],
    "activationTimes": {
        "codeLoadingTime": 4773,
        "activateCallTime": 11,
        "activateResolvedTime": 0,
        "activationReason": {
            "startup": false,
            "extensionId": {
                "value": "DotJoshJohnson.xml",
                "_lower": "dotjoshjohnson.xml"
            },
            "activationEvent": "onLanguage:xml"
        }
    },
    "runtimeErrors": []
}
rettinghaus commented 4 years ago

Also with VSCode version: 1.46.1

thw0rted commented 4 years ago

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.