Skip to content

Commit

Permalink
refactor: Rename lsp types for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
taichimaeda committed Nov 24, 2023
1 parent 532e579 commit a809268
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.12

require (
github.com/awalterschulze/gographviz v2.0.3+incompatible
github.com/google/go-cmp v0.2.0
github.com/google/go-cmp v0.5.8
github.com/google/subcommands v1.2.0
github.com/pmezard/go-difflib v1.0.0
golang.org/x/tools v0.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/awalterschulze/gographviz v2.0.3+incompatible h1:9sVEXJBJLwGX7EQVhLm2elIKCm7P2YHFC8v6096G09E=
github.com/awalterschulze/gographviz v2.0.3+incompatible/go.mod h1:GEV5wmg4YquNw7v1kkyoX9etIk8yVmXj+AkDHuuETHs=
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/subcommands v1.2.0 h1:vWQspBTo2nEqTUFita5/KeEWlUL8kQObDFbub/EN9oE=
github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
11 changes: 5 additions & 6 deletions internal/wire/lsp/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type ClientCapabilities struct {
}

type WorkspaceClientCapabilities struct {
Configuration bool `json:"configuration"`
WorkspaceFolders bool `json:"workspaceFolders"`
}

Expand Down Expand Up @@ -125,13 +124,13 @@ type CodeLens struct {
Command Command `json:"command"`
}

type DidSaveTextDocumentNotification struct {
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method"`
Params DidSaveTextDocumentParams `json:"params"`
type TextDocumentNotification struct {
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method"`
Params TextDocumentParams `json:"params"`
}

type DidSaveTextDocumentParams struct {
type TextDocumentParams struct {
TextDocument TextDocumentIdentifier `json:"textDocument"`
}

Expand Down

0 comments on commit a809268

Please sign in to comment.