File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,7 @@ replace a.com => $SANDBOX_WORKDIR/moda/a
443
443
// loaded. Validate this by jumping to a definition in b.com and ensuring
444
444
// that we go to the module cache.
445
445
env .OpenFile ("moda/a/a.go" )
446
+ env .Await (CompletedWork (lsp .DiagnosticWorkTitle (lsp .FromDidOpen ), 1 ))
446
447
447
448
// To verify which modules are loaded, we'll jump to the definition of
448
449
// b.Hello.
@@ -476,6 +477,7 @@ replace b.com => %s/modb
476
477
// Check that go.mod diagnostics picked up the newly active mod file.
477
478
// The local version of modb has an extra dependency we need to download.
478
479
env .OpenFile ("modb/go.mod" )
480
+ env .Await (CompletedWork (lsp .DiagnosticWorkTitle (lsp .FromDidOpen ), 2 ))
479
481
var d protocol.PublishDiagnosticsParams
480
482
env .Await (
481
483
OnceMet (
@@ -493,6 +495,7 @@ replace b.com => %s/modb
493
495
// Now, let's modify the gopls.mod *overlay* (not on disk), and verify that
494
496
// this change is only picked up once it is saved.
495
497
env .OpenFile ("gopls.mod" )
498
+ env .Await (CompletedWork (lsp .DiagnosticWorkTitle (lsp .FromDidOpen ), 3 ))
496
499
env .SetBufferContent ("gopls.mod" , fmt .Sprintf (`module gopls-workspace
497
500
498
501
require (
You can’t perform that action at this time.
0 commit comments