Skip to content

Commit

Permalink
feat: update codegen (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jul 12, 2023
1 parent 1a1a34d commit ef91d21
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
4 changes: 1 addition & 3 deletions lib/gen_lsp/protocol/requests/shutdown.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ defmodule GenLSP.Requests.Shutdown do
field :method, String.t(), default: "shutdown"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -29,8 +28,7 @@ defmodule GenLSP.Requests.Shutdown do
schema(__MODULE__, %{
method: "shutdown",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
4 changes: 1 addition & 3 deletions lib/gen_lsp/protocol/requests/workspace_code_lens_refresh.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ defmodule GenLSP.Requests.WorkspaceCodeLensRefresh do
field :method, String.t(), default: "workspace/codeLens/refresh"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -28,8 +27,7 @@ defmodule GenLSP.Requests.WorkspaceCodeLensRefresh do
schema(__MODULE__, %{
method: "workspace/codeLens/refresh",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ defmodule GenLSP.Requests.WorkspaceDiagnosticRefresh do
field :method, String.t(), default: "workspace/diagnostic/refresh"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -28,8 +27,7 @@ defmodule GenLSP.Requests.WorkspaceDiagnosticRefresh do
schema(__MODULE__, %{
method: "workspace/diagnostic/refresh",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule GenLSP.Requests.WorkspaceInlayHintRefresh do
field :method, String.t(), default: "workspace/inlayHint/refresh"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -26,8 +25,7 @@ defmodule GenLSP.Requests.WorkspaceInlayHintRefresh do
schema(__MODULE__, %{
method: "workspace/inlayHint/refresh",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule GenLSP.Requests.WorkspaceInlineValueRefresh do
field :method, String.t(), default: "workspace/inlineValue/refresh"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -26,8 +25,7 @@ defmodule GenLSP.Requests.WorkspaceInlineValueRefresh do
schema(__MODULE__, %{
method: "workspace/inlineValue/refresh",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule GenLSP.Requests.WorkspaceSemanticTokensRefresh do
field :method, String.t(), default: "workspace/semanticTokens/refresh"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: nil
Expand All @@ -26,8 +25,7 @@ defmodule GenLSP.Requests.WorkspaceSemanticTokensRefresh do
schema(__MODULE__, %{
method: "workspace/semanticTokens/refresh",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down
4 changes: 1 addition & 3 deletions lib/gen_lsp/protocol/requests/workspace_workspace_folders.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ defmodule GenLSP.Requests.WorkspaceWorkspaceFolders do
field :method, String.t(), default: "workspace/workspaceFolders"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :params, nil
end

@type result :: list(GenLSP.Structures.WorkspaceFolder.t()) | nil
Expand All @@ -26,8 +25,7 @@ defmodule GenLSP.Requests.WorkspaceWorkspaceFolders do
schema(__MODULE__, %{
method: "workspace/workspaceFolders",
jsonrpc: "2.0",
id: int(),
params: nil
id: int()
})
end

Expand Down

0 comments on commit ef91d21

Please sign in to comment.