Skip to content

Commit

Permalink
protocol: Pull in gopls v0.9.5 tsprotocol.go
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Apr 24, 2023
1 parent 8382e0c commit 5ac3113
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions internal/protocol/gen/gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:build generate
// +build generate

package main
Expand All @@ -15,7 +16,7 @@ import (
)

const (
goplsRef = "gopls/v0.8.4"
goplsRef = "gopls/v0.9.5"
urlFmt = "https://raw.githubusercontent.com/golang/tools" +
"/%s/internal/lsp/protocol/tsprotocol.go"
)
Expand Down Expand Up @@ -43,7 +44,7 @@ func main() {
}

if resp.StatusCode != 200 {
log.Fatalf("status code: %d", resp.StatusCode)
log.Fatalf("status code: %d (%s)", resp.StatusCode, url)
}

b, err := ioutil.ReadAll(resp.Body)
Expand Down
12 changes: 10 additions & 2 deletions internal/protocol/protocol.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ac3113

Please sign in to comment.