In extension.ts, we call await ComponentTypesView.instance.getAllComponents();. On Windows, this call takes a long time (much worse than on Linux), usually over a minute for me. Since this blocks the extension starting, the OpenShift sidebar is stuck loading for a while.
We should look into improving the performance of this command, and consider deferring it until after the extension has started, if possible.
After a bit more investigation, I figured out the call was taking a long time, since I had an stopped cluster in my ~/.kube/config. I'll see if I can reproduce the behaviour on Linux with this knowledge.
In
extension.ts
, we callawait ComponentTypesView.instance.getAllComponents();
. On Windows, this call takes a long time (much worse than on Linux), usually over a minute for me. Since this blocks the extension starting, the OpenShift sidebar is stuck loading for a while.We should look into improving the performance of this command, and consider deferring it until after the extension has started, if possible.