Skip to content

Commit 9a0e0bb

Browse files
committed
internal/lsp/source: allow users to set new options for network access
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 <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 73cf035 commit 9a0e0bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/lsp/source/options.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,12 @@ func (o *Options) set(name string, value interface{}) OptionResult {
792792
case "experimentalPackageCacheKey":
793793
result.setBool(&o.ExperimentalPackageCacheKey)
794794

795+
case "allowModfileModifications":
796+
result.setBool(&o.AllowModfileModifications)
797+
798+
case "allowImplicitNetworkAccess":
799+
result.setBool(&o.AllowImplicitNetworkAccess)
800+
795801
case "allExperiments":
796802
// This setting should be handled before all of the other options are
797803
// processed, so do nothing here.

0 commit comments

Comments
 (0)