Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.CallHierarchyIncomingCalls do
typedstruct do
field :method, String.t(), default: "callHierarchy/incomingCalls"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CallHierarchyIncomingCallsParams.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.CallHierarchyIncomingCalls do
schema(__MODULE__, %{
method: "callHierarchy/incomingCalls",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CallHierarchyIncomingCallsParams.schema()
})
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.CallHierarchyOutgoingCalls do
typedstruct do
field :method, String.t(), default: "callHierarchy/outgoingCalls"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CallHierarchyOutgoingCallsParams.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.CallHierarchyOutgoingCalls do
schema(__MODULE__, %{
method: "callHierarchy/outgoingCalls",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CallHierarchyOutgoingCallsParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/client_register_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule GenLSP.Requests.ClientRegisterCapability do
typedstruct do
field :method, String.t(), default: "client/registerCapability"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.RegistrationParams.t()
end

Expand All @@ -27,7 +27,7 @@ defmodule GenLSP.Requests.ClientRegisterCapability do
schema(__MODULE__, %{
method: "client/registerCapability",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.RegistrationParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/client_unregister_capability.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule GenLSP.Requests.ClientUnregisterCapability do
typedstruct do
field :method, String.t(), default: "client/unregisterCapability"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.UnregistrationParams.t()
end

Expand All @@ -27,7 +27,7 @@ defmodule GenLSP.Requests.ClientUnregisterCapability do
schema(__MODULE__, %{
method: "client/unregisterCapability",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.UnregistrationParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/code_action_resolve.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.CodeActionResolve do
typedstruct do
field :method, String.t(), default: "codeAction/resolve"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CodeAction.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.CodeActionResolve do
schema(__MODULE__, %{
method: "codeAction/resolve",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CodeAction.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/code_lens_resolve.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule GenLSP.Requests.CodeLensResolve do
typedstruct do
field :method, String.t(), default: "codeLens/resolve"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CodeLens.t()
end

Expand All @@ -26,7 +26,7 @@ defmodule GenLSP.Requests.CodeLensResolve do
schema(__MODULE__, %{
method: "codeLens/resolve",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CodeLens.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/completion_item_resolve.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.CompletionItemResolve do
typedstruct do
field :method, String.t(), default: "completionItem/resolve"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CompletionItem.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.CompletionItemResolve do
schema(__MODULE__, %{
method: "completionItem/resolve",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CompletionItem.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/document_link_resolve.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.DocumentLinkResolve do
typedstruct do
field :method, String.t(), default: "documentLink/resolve"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentLink.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.DocumentLinkResolve do
schema(__MODULE__, %{
method: "documentLink/resolve",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentLink.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/initialize.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule GenLSP.Requests.Initialize do
typedstruct do
field :method, String.t(), default: "initialize"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.InitializeParams.t()
end

Expand All @@ -30,7 +30,7 @@ defmodule GenLSP.Requests.Initialize do
schema(__MODULE__, %{
method: "initialize",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.InitializeParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/inlay_hint_resolve.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule GenLSP.Requests.InlayHintResolve do
typedstruct do
field :method, String.t(), default: "inlayHint/resolve"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.InlayHint.t()
end

Expand All @@ -30,7 +30,7 @@ defmodule GenLSP.Requests.InlayHintResolve do
schema(__MODULE__, %{
method: "inlayHint/resolve",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.InlayHint.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/shutdown.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule GenLSP.Requests.Shutdown do
typedstruct do
field :method, String.t(), default: "shutdown"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
end

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

Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_code_action.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule GenLSP.Requests.TextDocumentCodeAction do
typedstruct do
field :method, String.t(), default: "textDocument/codeAction"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CodeActionParams.t()
end

Expand All @@ -26,7 +26,7 @@ defmodule GenLSP.Requests.TextDocumentCodeAction do
schema(__MODULE__, %{
method: "textDocument/codeAction",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CodeActionParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_code_lens.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule GenLSP.Requests.TextDocumentCodeLens do
typedstruct do
field :method, String.t(), default: "textDocument/codeLens"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CodeLensParams.t()
end

Expand All @@ -26,7 +26,7 @@ defmodule GenLSP.Requests.TextDocumentCodeLens do
schema(__MODULE__, %{
method: "textDocument/codeLens",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CodeLensParams.schema()
})
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule GenLSP.Requests.TextDocumentColorPresentation do
typedstruct do
field :method, String.t(), default: "textDocument/colorPresentation"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.ColorPresentationParams.t()
end

Expand All @@ -29,7 +29,7 @@ defmodule GenLSP.Requests.TextDocumentColorPresentation do
schema(__MODULE__, %{
method: "textDocument/colorPresentation",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.ColorPresentationParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_completion.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GenLSP.Requests.TextDocumentCompletion do
typedstruct do
field :method, String.t(), default: "textDocument/completion"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.CompletionParams.t()
end

Expand All @@ -35,7 +35,7 @@ defmodule GenLSP.Requests.TextDocumentCompletion do
schema(__MODULE__, %{
method: "textDocument/completion",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.CompletionParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_declaration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule GenLSP.Requests.TextDocumentDeclaration do
typedstruct do
field :method, String.t(), default: "textDocument/declaration"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DeclarationParams.t()
end

Expand All @@ -31,7 +31,7 @@ defmodule GenLSP.Requests.TextDocumentDeclaration do
schema(__MODULE__, %{
method: "textDocument/declaration",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DeclarationParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_definition.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule GenLSP.Requests.TextDocumentDefinition do
typedstruct do
field :method, String.t(), default: "textDocument/definition"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DefinitionParams.t()
end

Expand All @@ -31,7 +31,7 @@ defmodule GenLSP.Requests.TextDocumentDefinition do
schema(__MODULE__, %{
method: "textDocument/definition",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DefinitionParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_diagnostic.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule GenLSP.Requests.TextDocumentDiagnostic do
typedstruct do
field :method, String.t(), default: "textDocument/diagnostic"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentDiagnosticParams.t()
end

Expand All @@ -28,7 +28,7 @@ defmodule GenLSP.Requests.TextDocumentDiagnostic do
schema(__MODULE__, %{
method: "textDocument/diagnostic",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentDiagnosticParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_document_color.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentColor do
typedstruct do
field :method, String.t(), default: "textDocument/documentColor"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentColorParams.t()
end

Expand All @@ -29,7 +29,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentColor do
schema(__MODULE__, %{
method: "textDocument/documentColor",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentColorParams.schema()
})
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentHighlight do
typedstruct do
field :method, String.t(), default: "textDocument/documentHighlight"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentHighlightParams.t()
end

Expand All @@ -29,7 +29,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentHighlight do
schema(__MODULE__, %{
method: "textDocument/documentHighlight",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentHighlightParams.schema()
})
end
Expand Down
4 changes: 2 additions & 2 deletions lib/gen_lsp/protocol/requests/text_document_document_link.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentLink do
typedstruct do
field :method, String.t(), default: "textDocument/documentLink"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentLinkParams.t()
end

Expand All @@ -26,7 +26,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentLink do
schema(__MODULE__, %{
method: "textDocument/documentLink",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentLinkParams.schema()
})
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentSymbol do
typedstruct do
field :method, String.t(), default: "textDocument/documentSymbol"
field :jsonrpc, String.t(), default: "2.0"
field :id, integer(), enforce: true
field :id, integer() | String.t(), enforce: true
field :params, GenLSP.Structures.DocumentSymbolParams.t()
end

Expand All @@ -32,7 +32,7 @@ defmodule GenLSP.Requests.TextDocumentDocumentSymbol do
schema(__MODULE__, %{
method: "textDocument/documentSymbol",
jsonrpc: "2.0",
id: int(),
id: oneof([int(), str()]),
params: GenLSP.Structures.DocumentSymbolParams.schema()
})
end
Expand Down
Loading
Loading