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:
parent
98467f4874
commit
3dcbf4fcbb
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue