From ddc05f8a134deaf9de34df0650f31cf9bb2c78e2 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Mon, 1 Feb 2021 22:24:56 -0500 Subject: [PATCH] internal/lsp: enable semantic tokens as part of all experiments Let's start testing semantic tokens in the Go Nightly extension. Change-Id: I0c5b1f0891d1e55f876bde1bf8c81feca97fb57b Reviewed-on: https://go-review.googlesource.com/c/tools/+/288652 Trust: Rebecca Stambler Run-TryBot: Rebecca Stambler gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Peter Weinberger --- internal/lsp/source/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/source/options.go b/internal/lsp/source/options.go index bb4286897..158416229 100644 --- a/internal/lsp/source/options.go +++ b/internal/lsp/source/options.go @@ -672,7 +672,7 @@ func (o *Options) AddStaticcheckAnalyzer(a *analysis.Analyzer) { // features offered by gopls. Any experimental features specified in maps // should be enabled in enableAllExperimentMaps. func (o *Options) enableAllExperiments() { - // There are currently no experimental features in development. + o.SemanticTokens = true } func (o *Options) enableAllExperimentMaps() {