1
0
Fork 0
mirror of https://github.com/laravel-ls/protocol.git synced 2026-06-16 03:54:56 +02:00

Change CancelParams.Id's type to json.Number

Need to handle both integer and string according to spec.
This commit is contained in:
Henrik Hautakoski 2026-02-09 00:22:19 +01:00
parent 98467f4874
commit 3dcbf4fcbb

View file

@ -1,5 +1,7 @@
package protocol package protocol
import "encoding/json"
const ( const (
MethodInitialize = "initialize" MethodInitialize = "initialize"
@ -69,7 +71,7 @@ type InitializeResult struct {
// //
// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#cancelRequest // See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#cancelRequest
type CancelParams struct { type CancelParams struct {
Id string `json:"id"` Id json.Number `json:"id"`
} }
// TraceValue - The LSP allows the client to control the tracing of the server. // TraceValue - The LSP allows the client to control the tracing of the server.