Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #2521
We were getting the red flame because of a mono behavior, where if we set the encoding to UTF8 then a BOM(Byte Object Mark) is pushed into the stream (output as well as error) as the first character. In the extension we were listening to this input on the error stream and making the flame red.
So the workaround is to remove the "BOM" from the buffer and firing the "STDERR" event only if the length of the BOM is greater than 0.
This will also remove the stray character in the "OmniSharp" log that appears when using mono on Linux/Mac.