nametake / golangci-lint-langserver

golangci-lint language server
MIT License
201 stars 19 forks source link

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

Closed b97tsk closed 3 years ago

b97tsk commented 3 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.