mirror of https://github.com/golang/go.git
gopls/internal/lsp/work: use the WorkFileError diagnostics source
It looks like this source was added but never used. Use it. Change-Id: I19d7c49ab1fda11d078a7850a7c0c3a78133ff52 Reviewed-on: https://go-review.googlesource.com/c/tools/+/435361 Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
9c63911fcf
commit
f80e98464e
|
|
@ -73,7 +73,7 @@ func DiagnosticsForWork(ctx context.Context, snapshot source.Snapshot, fh source
|
|||
URI: fh.URI(),
|
||||
Range: rng,
|
||||
Severity: protocol.SeverityError,
|
||||
Source: source.UnknownError, // Do we need a new source for this?
|
||||
Source: source.WorkFileError,
|
||||
Message: fmt.Sprintf("directory %v does not contain a module", use.Path),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue