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

Commit

Permalink
Clear diagnostics on save instead of waiting for lint or build to com…
Browse files Browse the repository at this point in the history
…plete #1404
  • Loading branch information
ramya-rao-a committed Dec 19, 2017
1 parent a03e877 commit 8a7a3fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,10 @@ function runBuilds(document: vscode.TextDocument, goConfig: vscode.WorkspaceConf
return;
}

let uri = document.uri;
check(uri, goConfig)
errorDiagnosticCollection.clear();
warningDiagnosticCollection.clear();
check(document.uri, goConfig)
.then((errors) => {
errorDiagnosticCollection.clear();
warningDiagnosticCollection.clear();
handleDiagnosticErrors(document, errors);
})
.catch(err => {
Expand Down

0 comments on commit 8a7a3fa

Please # to comment.