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

Diposing decorators before applying new ones for code coverage. #2047

Merged
merged 1 commit into from
Oct 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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