I found out that if I had a file with linter warnings, when I opened up a new file, this new, empty file would be decorated as if every line had a linter error (example below - notice that it also confuses the UI, as it now thinks that the error is on the first line).
So I found that, in filterMessages, we get all messages and always add the message in the editor if filePath is not defined. This seems weird, and removing that line solves the issue, so I'm proposing this change. Let me know if there's something extra that I need to be aware of
I found out that if I had a file with linter warnings, when I opened up a new file, this new, empty file would be decorated as if every line had a linter error (example below - notice that it also confuses the UI, as it now thinks that the error is on the first line).
So I found that, in
filterMessages
, we get all messages and always add the message in the editor iffilePath
is not defined. This seems weird, and removing that line solves the issue, so I'm proposing this change. Let me know if there's something extra that I need to be aware ofFixes #667