mirror of https://github.com/golang/go.git
internal/lsp: handle staticcheck in code actions
Missed this in CL 254038. Change-Id: I485f6e9112628dc4ff83e7ea47b59b340742711f Reviewed-on: https://go-review.googlesource.com/c/tools/+/254597 Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
2350fe8b0e
commit
17fc728d0d
|
|
@ -327,6 +327,9 @@ func diagnosticToAnalyzer(snapshot source.Snapshot, src, msg string) (analyzer *
|
|||
if a, ok := snapshot.View().Options().DefaultAnalyzers[src]; ok {
|
||||
return &a
|
||||
}
|
||||
if a, ok := snapshot.View().Options().StaticcheckAnalyzers[src]; ok {
|
||||
return &a
|
||||
}
|
||||
if a, ok := snapshot.View().Options().ConvenienceAnalyzers[src]; ok {
|
||||
return &a
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue