Skip to content

Commit

Permalink
Remove duplicated error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Jun 13, 2019
1 parent afac951 commit ee95c5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/FsAutoComplete.Core/Commands.fs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ type Commands (serialize : Serializer, backgroundServiceEnabled) =

let checkErrors = parseAndCheck.GetParseResults.Errors
let parseErrors = parseAndCheck.GetCheckResults.Errors
let errors = Array.append checkErrors parseErrors

let errors =
Array.append checkErrors parseErrors
|> Array.distinct
CoreResponse.Errors (errors, file)
|> NotificationEvent.ParseError
|> notify.Trigger
Expand Down

0 comments on commit ee95c5c

Please sign in to comment.