internal/lsp/cmd: set Serve.app when running with remote
Change-Id: Idf299a0b28b77a3372db20ccb0f80512422e601a Reviewed-on: https://go-review.googlesource.com/c/162138 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
parent
49fb246514
commit
f7e1b50d22
|
@ -68,6 +68,7 @@ gopls flags are:
|
|||
// If no arguments are passed it will invoke the server sub command, as a
|
||||
// temporary measure for compatibility.
|
||||
func (app *Application) Run(ctx context.Context, args ...string) error {
|
||||
app.Serve.app = app
|
||||
if len(args) == 0 {
|
||||
tool.Main(ctx, &app.Serve, args)
|
||||
return nil
|
||||
|
@ -91,7 +92,6 @@ func (app *Application) Run(ctx context.Context, args ...string) error {
|
|||
// command line.
|
||||
// The command is specified by the first non flag argument.
|
||||
func (app *Application) commands() []tool.Application {
|
||||
app.Serve.app = app
|
||||
return []tool.Application{
|
||||
&app.Serve,
|
||||
&query{app: app},
|
||||
|
|
Loading…
Reference in New Issue