Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/goLint: handle the case where no editor is active
When lint runs in workspace scope, the editor doesn't have to be open. Rearranged the if conditions, so the extension does not have to attempt to access editor.document.languageId unnecessarily. And, use the diagnostic collection names as the source names, instead of `go-lint` - this was missed when fixing #948. Fixes #1520 Updates #948 Change-Id: I166a78604097c57ad64313c705a3c2ddce9736ca Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/321841 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
- Loading branch information