@@ -44,20 +44,13 @@ type SemanticTokensClientCapabilities struct {
44
44
Formats []TokenFormat `json:"formats"`
45
45
}
46
46
47
- // SemanticTokensRequestFull SemanticTokensClientCapabilities.request.request.full 和 SemanticTokensOptions.Range 字段对应的值
48
- type SemanticTokensRequestFull struct {
49
- // The client will send the `textDocument/semanticTokens/full/delta` request if
50
- // the server provides a corresponding handler.
51
- Delta bool `json:"delta,omitempty"`
52
- }
53
-
54
- // SemanticTokensOptions 服务有关 SemanticTokens 的支持情况
47
+ // SemanticTokensOptions 服务端有关 SemanticTokens 的支持情况
55
48
type SemanticTokensOptions struct {
56
49
WorkDoneProgressOptions
57
50
// The legend used by the server
58
51
Legend SemanticTokensLegend `json:"legend"`
59
52
60
- // Server supports providing semantic tokens for a sepcific range of a document.
53
+ // Server supports providing semantic tokens for a specific range of a document.
61
54
//
62
55
// bool | {}
63
56
Range interface {} `json:"range,omitempty"`
@@ -76,7 +69,7 @@ type SemanticTokensLegend struct {
76
69
TokenModifiers []string `json:"tokenModifiers"`
77
70
}
78
71
79
- // SemanticTokensParams textDocument/semanticTokens/full 入口参数
72
+ // SemanticTokensParams textDocument/semanticTokens 入口参数
80
73
type SemanticTokensParams struct {
81
74
WorkDoneProgressParams
82
75
PartialResultParams
@@ -85,7 +78,7 @@ type SemanticTokensParams struct {
85
78
TextDocument TextDocumentIdentifier `json:"textDocument"`
86
79
}
87
80
88
- // SemanticTokens textDocument/semanticTokens/full 返回参数
81
+ // SemanticTokens textDocument/semanticTokens 返回参数
89
82
type SemanticTokens struct {
90
83
// An optional result id. If provided and clients support delta updating
91
84
// the client will include the result id in the next semantic token request.
0 commit comments