Skip to content

Commit

Permalink
Add more built in well-known types
Browse files Browse the repository at this point in the history
  • Loading branch information
kralicky committed Sep 16, 2023
1 parent 328aab3 commit 4db53fa
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,25 @@ require (
golang.org/x/sync v0.3.0
golang.org/x/tools v0.6.0
golang.org/x/tools/gopls v0.12.4
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130
google.golang.org/protobuf v1.31.0
)

require (
cloud.google.com/go/dlp v1.10.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/plar/go-adaptive-radix-tree v1.0.5 // indirect
github.com/spf13/pflag v1.0.5 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/telemetry v0.0.0-20230808152233-a65b40c0fdb0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/vuln v0.0.0-20230110180137-6ad3e3d07815 // indirect
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/grpc v1.56.2 // indirect
)

replace (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cloud.google.com/go/dlp v1.10.1 h1:tF3wsJ2QulRhRLWPzWVkeDz3FkOGVoMl6cmDUHtfYxw=
cloud.google.com/go/dlp v1.10.1/go.mod h1:IM8BWz1iJd8njcNcG0+Kyd9OPnqnRNkDV8j42VT5KOI=
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
Expand Down
18 changes: 18 additions & 0 deletions pkg/lsp/wellknown.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,30 @@ import (
_ "google.golang.org/genproto/googleapis/api/annotations"
_ "google.golang.org/genproto/googleapis/api/httpbody"
_ "google.golang.org/genproto/googleapis/api/label"
_ "google.golang.org/genproto/googleapis/privacy/dlp/v2"
_ "google.golang.org/genproto/googleapis/rpc/code"
_ "google.golang.org/genproto/googleapis/rpc/context"
_ "google.golang.org/genproto/googleapis/rpc/context/attribute_context"
_ "google.golang.org/genproto/googleapis/rpc/errdetails"
_ "google.golang.org/genproto/googleapis/rpc/http"
_ "google.golang.org/genproto/googleapis/rpc/status"
_ "google.golang.org/genproto/googleapis/type/calendarperiod"
_ "google.golang.org/genproto/googleapis/type/color"
_ "google.golang.org/genproto/googleapis/type/date"
_ "google.golang.org/genproto/googleapis/type/datetime"
_ "google.golang.org/genproto/googleapis/type/dayofweek"
_ "google.golang.org/genproto/googleapis/type/decimal"
_ "google.golang.org/genproto/googleapis/type/expr"
_ "google.golang.org/genproto/googleapis/type/fraction"
_ "google.golang.org/genproto/googleapis/type/interval"
_ "google.golang.org/genproto/googleapis/type/latlng"
_ "google.golang.org/genproto/googleapis/type/localized_text"
_ "google.golang.org/genproto/googleapis/type/money"
_ "google.golang.org/genproto/googleapis/type/month"
_ "google.golang.org/genproto/googleapis/type/phone_number"
_ "google.golang.org/genproto/googleapis/type/postaladdress"
_ "google.golang.org/genproto/googleapis/type/quaternion"
_ "google.golang.org/genproto/googleapis/type/timeofday"
)

var (
Expand Down

0 comments on commit 4db53fa

Please sign in to comment.