vscode-kubernetes-tools / vscode-kubernetes-tools-api

A NPM package for building Kubernetes extensions for Visual Studio Code
Other
9 stars 15 forks source link

Handle the returned API object predating APIBroker #10

Closed itowlson closed 5 years ago

itowlson commented 5 years ago

Users may have an old version of the k8s extension pinned - or, during the pre-launch phase, they may have the marketplace version that doesn't have the APIBroker. We should return an 'extension too old' error in this case rather than failing with a mysterious 'apiBroker.get is not defined' exception.