sync: merge microsoft/vscode-go@a66e3b5 into master
Change-Id: Ie13560096a7ba7661bfde398cd161bbf7da1acc3
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index bb56a9a..4d6fb1b 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -45,4 +45,4 @@
3. See error
### Screenshots or recordings
-If applicable, add screenshots or recordings to help explain your problem.
\ No newline at end of file
+If applicable, add screenshots or recordings to help explain your problem.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b67a620..052c17e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.14.3 - 21st May, 2020
+
+* [Hyang-Ah Hana Kim (@hyangah)](https://github.com/hyangah)
+ * Fix the bug introduced in the previous update where the code coverage does not disappear when edits to the file are saved.
+
## 0.14.2 - 14th May, 2020
* [Hyang-Ah Hana Kim (@hyangah)](https://github.com/hyangah)
diff --git a/src/goCover.ts b/src/goCover.ts
index f0490e8..6185838 100644
--- a/src/goCover.ts
+++ b/src/goCover.ts
@@ -32,7 +32,7 @@
// a list of modified, unsaved go files with actual code edits (rather than comment edits)
let modifiedFiles: {
[key: string]: boolean;
-};
+} = {};
/**
* Initializes the decorators used for Code coverage.
@@ -298,7 +298,7 @@
* @param e TextDocument
*/
export function removeCodeCoverageOnFileSave(e: vscode.TextDocument) {
- if (e.languageId !== 'go' || !isCoverageApplied || !e.isDirty) {
+ if (e.languageId !== 'go' || !isCoverageApplied) {
return;
}