lsp/internal: fix incorrectly formatted file
Change-Id: Ibef9c7d5ce0abfa26ba98744c26b54d843227c23 Reviewed-on: https://go-review.googlesource.com/c/162077 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
6bedcd1097
commit
dbb4d4be53
|
@ -11,11 +11,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"net"
|
|
||||||
|
|
||||||
"golang.org/x/tools/internal/jsonrpc2"
|
"golang.org/x/tools/internal/jsonrpc2"
|
||||||
"golang.org/x/tools/internal/lsp"
|
"golang.org/x/tools/internal/lsp"
|
||||||
|
@ -28,7 +28,7 @@ type Serve struct {
|
||||||
Logfile string `flag:"logfile" help:"filename to log to. if value is \"auto\", then logging to a default output file is enabled"`
|
Logfile string `flag:"logfile" help:"filename to log to. if value is \"auto\", then logging to a default output file is enabled"`
|
||||||
Mode string `flag:"mode" help:"no effect"`
|
Mode string `flag:"mode" help:"no effect"`
|
||||||
Port int `flag:"port" help:"port on which to run gopls for debugging purposes"`
|
Port int `flag:"port" help:"port on which to run gopls for debugging purposes"`
|
||||||
Address string `flag:"listen" help:"address on which to listen for remote connections"`
|
Address string `flag:"listen" help:"address on which to listen for remote connections"`
|
||||||
|
|
||||||
app *Application
|
app *Application
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,6 @@ func (s *Serve) Run(ctx context.Context, args ...string) error {
|
||||||
return lsp.RunServer(ctx, stream, logger)
|
return lsp.RunServer(ctx, stream, logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (s *Serve) forward() error {
|
func (s *Serve) forward() error {
|
||||||
conn, err := net.Dial("tcp", s.app.Remote)
|
conn, err := net.Dial("tcp", s.app.Remote)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue