Skip to content

Commit

Permalink
cmd/govim: use gopls serve command explicitly (#898)
Browse files Browse the repository at this point in the history
In the near future, the default zero-command-implied serve behaviour
will disappear.
  • Loading branch information
myitcv committed Jun 24, 2020
1 parent a9a4fe3 commit ca39b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/govim/gopls.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (g *govimplugin) startGopls() error {

g.ChannelExf("let s:gopls_logfile=%q", logfile.Name())

goplsArgs := []string{"-rpc.trace", "-logfile", logfile.Name()}
goplsArgs := []string{"serve", "-rpc.trace", "-logfile", logfile.Name()}
if flags, err := util.Split(os.Getenv(string(config.EnvVarGoplsFlags))); err != nil {
g.Logf("invalid env var %s: %v", config.EnvVarGoplsFlags, err)
} else {
Expand Down

0 comments on commit ca39b23

Please sign in to comment.