richie5um / vscode-sort-json

VSCode Extension to Sort JSON objects
https://marketplace.visualstudio.com/items?itemName=richie5um2.vscode-sort-json
MIT License
107 stars 20 forks source link

Slows down startup, when json file is open #73

Open falco467 opened 1 year ago

falco467 commented 1 year ago

Hi,

while measuring and improving startup performance of extensions in VS Code I discovered this extension will load "onLanguage:json" and usually takes around 460ms of activation time.

If I understand the documentation correctly, this extension does not need the activation event. The menu contributions should be displayed even without extension activation and all commands will activate the extension implicitely.

Is it possible to remove the activation event onLanguage, so the extension will only be activates when used ?