nametake / golangci-lint-langserver

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

Execute golangci-lint in target document's directory #5

Closed b97tsk closed 4 years ago

b97tsk commented 4 years ago

Fixed golangci-lint-server doesn't report anything if current working directory is not the root directory.

Note that issue.Pos.Filename may contain backslashes on Windows, which would cause previous if-check always fails. This PR makes the problem gone.

May have better performance.