Unreviewed changes
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: gopls/internal/test/integration/fake/editor.go
Insertions: 1, Deletions: 1.
@@ -1856,7 +1856,7 @@
text := string(m.Content[start:end])
if t >= uint32(len(legend.TokenTypes)) {
- return nil, fmt.Errorf("index %d is out of bounds for SemanticTokensLegend with length %d", t, len(legend.TokenTypes))
+ return nil, fmt.Errorf("tokenType index %d is out of bounds for SemanticTokensLegend.TokenTypes with length %d", t, len(legend.TokenTypes))
}
ans = append(ans, SemanticToken{
```
Change information
Commit message:
gopls/internal/test: address out of bounds panic in BenchmarkSemanticTokens
We are currently not generating any performance metrics for gopls
because the benchmarks suite panics in BenchmarkSemanticTokens.
See go.dev/cl/794620 for more details.
Report an error instead of panicing when the index is out of
bounds for TokenTypes. (I still don't understand why we hit
this scenario).
For golang/go#80113
Change-Id: Iba0eb06bcc439283a4f8924806fbc828aed0f6a3
Files:
- M gopls/internal/test/integration/fake/editor.go
Change size: XS
Delta: 1 file changed, 4 insertions(+), 0 deletions(-)
Branch: refs/heads/master