microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

Why is Azure IoT Toolkit `*` activated? #564

Open TylerLeonhardt opened 1 year ago

TylerLeonhardt commented 1 year ago

Describe the bug

👋 from the VS Code team. We noticed that this extension is * activated.

When you are * activated, you compete with vscode for start up time and as a result, you hurt vscode's startup time in the process.

It's better to be reactive and only activate when the user interacts with your extension:

To Reproduce Steps to reproduce the behavior:

  1. Open a blank VS Code window
  2. install Azure IoT Toolkit
  3. reload the window
  4. Azure IoT Toolkit is activated

Expected behavior It shouldn't activate until needed.

Additional context

Activation events for your reference https://code.visualstudio.com/api/references/activation-events

TylerLeonhardt commented 1 year ago

Maybe @c-ryan-k can comment on this?