Skip to content

Commit

Permalink
修复:#37 当文件从有告警到无告警时,最后会残留告警
Browse files Browse the repository at this point in the history
  • Loading branch information
liwangqian committed Oct 8, 2018
1 parent ae190f5 commit 6c43443
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/providers/diagnostic-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class DiagnosticProvider {
}

const command = linter.command(document);
this._run(uri, idx, command, text).then(() => { }, nok => {
this._run(uri, idx, command, text).then(() => {
this.coder.sendDiagnostics(uri, []);
}, nok => {
const diagnostics = linter.parseDiagnostics(nok);
this.coder.sendDiagnostics(uri, diagnostics);
});
Expand Down

0 comments on commit 6c43443

Please sign in to comment.