Change information
Commit message:
gopls/internal/test: have semtok work with go...@v0.11.0
Previously in gopls v0.11.0, the gopls server only registered SemanticTokens as a dynamic registration. Meaning that the option `capabilities.TextDocument.SemanticTokens.DynamicRegistration` had to be `true` and the client had to be set up to handle it being dynamically registered; i.e. in the `RegisterCapability` callback.
So by implementing this functionality again on the client (which shouldn't be an issue since it is just supporting an additional server configuration), the benchmarks now work again for the baseline version. Tested running the command:
```
> cd gopls/internal/test/integration/bench
> go test -test.fullpath=true -benchmem -run=^$ -gopls_commit=gopls/v0.11.0 -bench ^BenchmarkSemanticTokens$ golang.org/x/tools/gopls/internal/test/integration/bench
```
Change-Id: Iecf9efad800e4c9d0322f6288ee2ee106a6a6964
Files:
- M gopls/internal/test/integration/fake/client.go
- M gopls/internal/test/integration/fake/editor.go
Change size: S
Delta: 2 files changed, 10 insertions(+), 0 deletions(-)
Branch: refs/heads/master