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

add window features structs and types

This commit is contained in:
Henrik Hautakoski 2026-03-01 22:27:56 +01:00
parent 9988e59b6c
commit 5049160990
3 changed files with 141 additions and 1 deletions

View file

@ -2,6 +2,11 @@ package protocol
import "encoding/json"
const (
MethodWindowWorkDoneProgressCreate = "window/workDoneProgress/create"
MethodWindowWorkDoneProgressCancel = "window/workDoneProgress/cancel"
)
// ProgressToken - A token that can be used to report work done progress.
// Can be a string or a number.
//
@ -39,3 +44,23 @@ type PartialResultParams struct {
// PartialResultToken is a token for handling partial result updates.
PartialResultToken *ProgressToken `json:"partialResultToken,omitempty"`
}
// WorkDoneProgressCreateParams - The parameters of a work done progress create request.
//
// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workDoneProgressCreateParams
//
// @since 3.15.0
type WorkDoneProgressCreateParams struct {
// The token to be used to report progress.
Token ProgressToken `json:"token"`
}
// WorkDoneProgressCancelParams - The parameters of a work done progress cancel notification.
//
// See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workDoneProgressCancelParams
//
// @since 3.15.0
type WorkDoneProgressCancelParams struct {
// The token to be used to report progress.
Token ProgressToken `json:"token"`
}