Skip to content

Commit

Permalink
update to reflect upstream interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Oct 11, 2021
1 parent cb341fd commit 07ce110
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/langserver/langserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ func (ls *langServer) StartTCP(address string) error {
}
ls.logger.Printf("TCP server running at %q", lst.Addr())

accepter := server.NetAccepter(lst, channel.LSP)

go func() {
ls.logger.Println("Starting loop server ...")
err = server.Loop(lst, ls.newService, &server.LoopOptions{
Framing: channel.LSP,
err = server.Loop(accepter, ls.newService, &server.LoopOptions{
ServerOptions: ls.srvOptions,
})
if err != nil {
Expand Down

0 comments on commit 07ce110

Please sign in to comment.