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>
diff --git a/internal/lsp/code_action.go b/internal/lsp/code_action.go
index 7ad924d..80c28e8 100644
--- a/internal/lsp/code_action.go
+++ b/internal/lsp/code_action.go
@@ -327,6 +327,9 @@
 	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
 	}