mirror of https://github.com/golang/go.git
gopls/internal/regtest/misc: fix use of the AfterChange API
Fix a broken build due to a change in the AfterChange API. Change-Id: I9719a4c7721c768e2704655c80cd510386255b3e Reviewed-on: https://go-review.googlesource.com/c/tools/+/451236 TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Auto-Submit: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
89856a4c91
commit
b0ad6b2e07
|
|
@ -93,8 +93,7 @@ func Add[T int](target T, l []T) []T {
|
|||
Settings{"semanticTokens": true},
|
||||
).Run(t, src, func(t *testing.T, env *Env) {
|
||||
env.OpenFile("main.go")
|
||||
//env.Await(EmptyOrNoDiagnostics("main.go`"))
|
||||
env.Await(env.AfterChange(env.DiagnosticAtRegexp("main.go", "for range")))
|
||||
env.AfterChange(env.DiagnosticAtRegexp("main.go", "for range"))
|
||||
p := &protocol.SemanticTokensParams{
|
||||
TextDocument: protocol.TextDocumentIdentifier{
|
||||
URI: env.Sandbox.Workdir.URI("main.go"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue