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

Commit

Permalink
Dont wait for coverage to update problems view #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Aug 20, 2017
1 parent 8a3f528 commit 89feaa7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified Go-latest.vsix
Binary file not shown.
3 changes: 1 addition & 2 deletions src/goCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,13 @@ export function check(filename: string, goConfig: vscode.WorkspaceConfiguration)
}

if (!!goConfig['coverOnSave']) {
let coverPromise = runTest().then(success => {
runTest().then(success => {
if (!success) {
return [];
}
// FIXME: it's not obvious that tmpCoverPath comes from runTest()
return getCoverage(tmpCoverPath);
});
runningToolsPromises.push(coverPromise);
}

return Promise.all(runningToolsPromises).then(resultSets => [].concat.apply([], resultSets));
Expand Down

0 comments on commit 89feaa7

Please sign in to comment.