Skip to content

Commit

Permalink
cmd/govim: move unimported completion tests to scenario_default
Browse files Browse the repository at this point in the history
The default for the unimported completions config option in gopls (and
govim) switched to be "on" some time ago. Hence we do not need a special
scenario for the corresponding tests, and can move them to
scenario_default.
  • Loading branch information
myitcv committed Feb 22, 2020
1 parent 60ac92c commit f3e7127
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cmd/govim/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,15 @@ type Config struct {
CompletionMatcher *CompletionMatcher `json:",omitempty"`

// Staticcheck enables staticcheck analyses in gopls
//
// Default: false
Staticcheck *bool `json:",omitempty"`

// CompleteUnimported configures gopls to attempt completions for unimported
// standard library packages. e.g. when a user completes rand.<>, propose
// rand.Seed (from math/rand) and rand.Prime (from crypto/rand), etc.
//
// Default: true
CompleteUnimported *bool `json:",omitempty"`

// GoImportsLocalPrefix is used to specify goimports's -local behavior. When
Expand Down

This file was deleted.

0 comments on commit f3e7127

Please sign in to comment.