redhat-developer / vscode-openshift-tools

OpenShift extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-openshift-connector
MIT License
95 stars 61 forks source link

`await ComponentTypesView.instance.getAllComponents();` takes a long time on Windows #3042

Open datho7561 opened 1 year ago

datho7561 commented 1 year ago

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.

datho7561 commented 1 year ago

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.