Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

showCovered/showUncovered #945

Merged
merged 6 commits into from
May 1, 2017
Merged

showCovered/showUncovered #945

merged 6 commits into from
May 1, 2017

Conversation

kode4food
Copy link
Contributor

Adding two configuration options:

  • go.showCovered (defaults to true) will decorate covered code in green
  • go.showUncovered (defaults to true) will decorate uncovered code in red

@msftclas
Copy link

@kode4food,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.

It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

@msftclas
Copy link

@kode4food, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.

Thanks, Microsoft Pull Request Bot

@kode4food
Copy link
Contributor Author

The one failing build configuration seems to be completely unrelated to the PR

@kode4food kode4food closed this Apr 26, 2017
@kode4food kode4food reopened this Apr 26, 2017
@msftclas
Copy link

@kode4food,
Thanks for having already signed the Contribution License Agreement. Your agreement has not been validated yet. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

package.json Outdated
@@ -450,6 +450,16 @@
"default": false,
"description": "Run 'go test -coverprofile' on save"
},
"go.showCovered": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am a little hesitant to add new settings. The list of settings we have is really blowing up.
How about re-using the existing setting for coverage.

"go.coverOnSave": {
   "type": ["boolean", "string"],
   "enum": [true, "showCoveredOnly", "showUncoveredOnly"],
   "default": true,
   "description": "..."
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramya-rao-a Just as well! I won't be able to get around to it until Friday though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem, I am planning to release an update early next week. So Friday sounds good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I lied, just pushed the changes

@kode4food kode4food closed this Apr 27, 2017
@kode4food kode4food reopened this Apr 27, 2017
@msftclas
Copy link

@kode4food,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, the description of the setting needs an update, I'll take care of that

@ramya-rao-a ramya-rao-a merged commit 8962e4b into microsoft:master May 1, 2017
@ramya-rao-a
Copy link
Contributor

@kode4food Since we have the Go: Test coverage .. command as well, having these options inside go.coverOnSave didnt seem right. So I am falling back to your initial proposal of having these options outside coveronSave. I am combining them (show covered/uncovered/both) to a single setting though.

See 9ddd218

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants