Skip to content

Commit

Permalink
Stop analyzer observatory messages from being handled as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Apr 10, 2019
1 parent 5ecb308 commit d360bb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/analysis/analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ export class Analyzer extends AnalyzerGen {

protected shouldHandleMessage(message: string): boolean {
// This will include things like Observatory output and some analyzer logging code.
return !message.startsWith("--- ") && !message.startsWith("+++ ");
return !message.startsWith("--- ")
&& !message.startsWith("+++ ")
&& !message.startsWith("Observatory listening on")
&& !message.startsWith("Observatory server");
}

private async requestDiagnosticsUpdate() {
Expand Down

0 comments on commit d360bb8

Please sign in to comment.