Skip to content

Commit

Permalink
internal/lsp/source: allow users to set new options for network access
Browse files Browse the repository at this point in the history
These options were added in CL 274532, but it's not possible for users
to actually set them.

Change-Id: I85642ada017f225d4d77e4dfc97fe13847f4091a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/275442
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
  • Loading branch information
stamblerre committed Dec 4, 2020
1 parent 73cf035 commit 9a0e0bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/lsp/source/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,12 @@ func (o *Options) set(name string, value interface{}) OptionResult {
case "experimentalPackageCacheKey":
result.setBool(&o.ExperimentalPackageCacheKey)

case "allowModfileModifications":
result.setBool(&o.AllowModfileModifications)

case "allowImplicitNetworkAccess":
result.setBool(&o.AllowImplicitNetworkAccess)

case "allExperiments":
// This setting should be handled before all of the other options are
// processed, so do nothing here.
Expand Down

0 comments on commit 9a0e0bb

Please sign in to comment.