@@ -321,7 +321,7 @@ func (s *snapshot) Templates() map[span.URI]source.FileHandle {
321
321
return tmpls
322
322
}
323
323
324
- func (s * snapshot ) ValidBuildConfiguration () bool {
324
+ func (s * snapshot ) validBuildConfiguration () bool {
325
325
// Since we only really understand the `go` command, if the user has a
326
326
// different GOPACKAGESDRIVER, assume that their configuration is valid.
327
327
if s .view .hasGopackagesDriver {
@@ -379,7 +379,7 @@ func (s *snapshot) workspaceMode() workspaceMode {
379
379
380
380
// If the view has an invalid configuration, don't build the workspace
381
381
// module.
382
- validBuildConfiguration := s .ValidBuildConfiguration ()
382
+ validBuildConfiguration := s .validBuildConfiguration ()
383
383
if ! validBuildConfiguration {
384
384
return mode
385
385
}
@@ -1448,8 +1448,8 @@ const adHocPackagesWarning = `You are outside of a module and outside of $GOPATH
1448
1448
If you are using modules, please open your editor to a directory in your module.
1449
1449
If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new.`
1450
1450
1451
- func shouldShowAdHocPackagesWarning (snapshot source. Snapshot , active []* source.Metadata ) string {
1452
- if ! snapshot .ValidBuildConfiguration () {
1451
+ func shouldShowAdHocPackagesWarning (snapshot * snapshot , active []* source.Metadata ) string {
1452
+ if ! snapshot .validBuildConfiguration () {
1453
1453
for _ , m := range active {
1454
1454
// A blank entry in DepsByImpPath
1455
1455
// indicates a missing dependency.
@@ -1559,7 +1559,7 @@ func (s *snapshot) reloadWorkspace(ctx context.Context) error {
1559
1559
1560
1560
// If the view's build configuration is invalid, we cannot reload by
1561
1561
// package path. Just reload the directory instead.
1562
- if ! s .ValidBuildConfiguration () {
1562
+ if ! s .validBuildConfiguration () {
1563
1563
scopes = []loadScope {viewLoadScope ("LOAD_INVALID_VIEW" )}
1564
1564
}
1565
1565
0 commit comments