upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

Validate `crossplane.yaml` as part of initialization #142

Closed tnthornton closed 2 years ago

tnthornton commented 2 years ago

Description of your changes

Prior to this change, if an end user opened a package in VS Code and the following were true:

There would be no feedback given to the end user. Nothing.

With this change, we now validate the crossplane.yaml during the initialization stage and emit diagnostics async so that if the above occurs, the end user will see their crossplane.yaml file turn red and a notice will show up in the problems window.

Fixes #136

I have:

How has this code been tested

Verified that the expected behavior occurred when working with an empty cache and the file that was open during initialization was not the crossplane.yaml.