fix(vscode): improve codelens if no targets exist for project #2303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before, when there were no targets for a project, we showed this awkward empty codelens. It opens a quickpick with only one action:
Now we directly show the
Open Project Details
action:This will be complemented by an improvement to the PDV to show a better empty state in the PDV with links to documentation.
In case you're wondering, it's not possible to just not show a codelens at this point. The codelens is already created (by parsing the json file, has to be quick). Whether there's a target on this project can only be known later in this async project-graph-dependent resolution of the codelens content.