File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -926,8 +926,10 @@ type SemanticTokensWorkspaceClientCapabilitiesRequests struct {
926
926
Range bool `json:"range,omitempty"`
927
927
928
928
// Full is the client will send the "textDocument/semanticTokens/full" request
929
- // if the server provides a corresponding handler.
930
- Full bool `json:"full,omitempty"` // delta?: boolean
929
+ // if the server provides a corresponding handler. The client will send the
930
+ // `textDocument/semanticTokens/full/delta` request if the server provides a
931
+ // corresponding handler.
932
+ Full interface {} `json:"full,omitempty"`
931
933
}
932
934
933
935
// LinkedEditingRangeClientCapabilities capabilities specific to "textDocument/linkedEditingRange" requests.
Original file line number Diff line number Diff line change @@ -1821,7 +1821,7 @@ var (
1821
1821
// MarshalJSONObject implements gojay.MarshalerJSONObject.
1822
1822
func (v * SemanticTokensWorkspaceClientCapabilitiesRequests ) MarshalJSONObject (enc * gojay.Encoder ) {
1823
1823
enc .BoolKeyOmitEmpty (keyRange , v .Range )
1824
- enc .BoolKeyOmitEmpty (keyFull , v .Full )
1824
+ enc .AddInterfaceKey (keyFull , v .Full )
1825
1825
}
1826
1826
1827
1827
// IsNil implements gojay.MarshalerJSONObject.
@@ -1833,7 +1833,7 @@ func (v *SemanticTokensWorkspaceClientCapabilitiesRequests) UnmarshalJSONObject(
1833
1833
case keyRange :
1834
1834
return dec .Bool (& v .Range )
1835
1835
case keyFull :
1836
- return dec .Bool (& v .Full )
1836
+ return dec .Interface (& v .Full )
1837
1837
}
1838
1838
return nil
1839
1839
}
You can’t perform that action at this time.
0 commit comments