Skip to content

Commit cf97b7f

Browse files
committed
internal/lsp: support go1.12
We still don't have a good way to make sure that we don't break 1.12 support, but this is an easy enough fix to start with. Updates golang/go#39146 Change-Id: I14fe997fa1f3d60320d77e664208e25d97ae6f4f Reviewed-on: https://go-review.googlesource.com/c/tools/+/243578 Run-TryBot: Rebecca Stambler <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent e6549b8 commit cf97b7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/jsonrpc2/messages.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ package jsonrpc2
66

77
import (
88
"encoding/json"
9-
"errors"
109
"fmt"
10+
11+
errors "golang.org/x/xerrors"
1112
)
1213

1314
// Message is the interface to all jsonrpc2 message types.

internal/jsonrpc2/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ package jsonrpc2
66

77
import (
88
"context"
9-
"errors"
109
"fmt"
1110
"io"
1211
"net"
1312
"os"
1413
"time"
1514

1615
"golang.org/x/tools/internal/event"
16+
errors "golang.org/x/xerrors"
1717
)
1818

1919
// NOTE: This file provides an experimental API for serving multiple remote

0 commit comments

Comments
 (0)