nametake / golangci-lint-langserver

golangci-lint language server
MIT License
229 stars 20 forks source link

Return empty array when golangci-lint return empty #2

Closed kitagry closed 4 years ago

kitagry commented 4 years ago

Hi @nametake , thanks for the nice language server!

When golangci-lint doesn't returns an error, this will be returned as:

{"uri":"file:///path/to/file.go","diagnostics":null}

But I think diagnostics should be an empty array, not null. So, I fixed it. Please feel free to merge this PR. Thanks.

nametake commented 4 years ago

Thank you!