Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/goCover: clear cached coverage info on save #71

Closed
wants to merge 1 commit into from

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented May 19, 2020

This is a fix for the regression in ms-vscode.Go@0.14.2

The isDirty bit of the TextDocument when vscode.workspace.onDidSaveTextDocument is
already false. Adjust the condition for clearing cache not to check it.
Modification should be tracked already by trackCodeCoverageRemovalOnFileChange.

And let modifiedFiles start with an empty value rather than as undefined.

Fixes microsoft/vscode-go#3252.

This is a fix for the regression in ms-vscode.Go@0.14.2

The `isDirty` bit of the TextDocument when vscode.workspace.onDidSaveTextDocument is
already false.  Adjust the condition for clearing cache not to check it.
Modification should be tracked already by trackCodeCoverageRemovalOnFileChange.

And let modifiedFiles start with an empty value rather than as undefined.

Fixes github.com/microsoft/issues/3252.
@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label May 19, 2020
@gopherbot
Copy link
Collaborator

This PR (HEAD: fbfddd9) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/vscode-go/+/234527 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

Copy link
Contributor

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

As the original author of microsoft/vscode-go#2853 - this seems sensible.

@gopherbot
Copy link
Collaborator

This PR is being closed because golang.org/cl/234527 has been abandoned.

applied directory to microsoft/vscode-go

@gopherbot gopherbot closed this May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Background of covered and not covered code cannot be removed after running package test
4 participants