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

Commit

Permalink
Preserve code coverage in multiple editors #2608
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 29, 2019
1 parent f7c74a9 commit 0de7e94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/goCover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export function applyCodeCoverageToAllEditors(coverProfilePath: string, packageD
setCoverageData(filePath, coverage);
});
lines.on('close', () => {
setDecorators();
vscode.window.visibleTextEditors.forEach(applyCodeCoverage);
resolve();
});
Expand Down Expand Up @@ -238,8 +239,6 @@ export function applyCodeCoverage(editor: vscode.TextEditor) {

const cfg = vscode.workspace.getConfiguration('go', editor.document.uri);
const coverageOptions = cfg['coverageOptions'];
setDecorators();

for (const filename in coverageFiles) {
if (editor.document.uri.fsPath.endsWith(filename)) {
isCoverageApplied = true;
Expand Down

0 comments on commit 0de7e94

Please sign in to comment.