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

Commit

Permalink
Diposing decorators before applying new ones for code coverage. (#2047)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogogmt authored and ramya-rao-a committed Oct 31, 2018
1 parent 1ab7320 commit acba4d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/goCover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit acba4d7

Please sign in to comment.