From b28a5f10a3e1af47208bd8906ccbd6f322c283c6 Mon Sep 17 00:00:00 2001 From: Diogo Monteiro Date: Wed, 24 Oct 2018 21:29:55 -0400 Subject: [PATCH] Diposing decorators before applying new ones for code coverage. --- src/goCover.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/goCover.ts b/src/goCover.ts index 2fd50a546..169c517d3 100644 --- a/src/goCover.ts +++ b/src/goCover.ts @@ -234,6 +234,7 @@ export function applyCodeCoverage(editor: vscode.TextEditor) { const cfg = vscode.workspace.getConfiguration('go', editor.document.uri); const coverageOptions = cfg['coverageOptions']; + disposeDecorators(); setDecorators(); for (let filename in coverageFiles) {