Skip to content

Commit 438f5e4

Browse files
committed
Made SemanticTokenOptions naming uniform with the rest of the capabilities
1 parent fcf8b22 commit 438f5e4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lsp_capabilities_server.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ type ServerCapabilities struct {
111111
// The server provides semantic tokens support.
112112
//
113113
// @since 3.16.0
114-
SemanticTokensProvider *SemanticTokensRegistrationOptions `json:"semanticTokensProvider,omitempty"`
114+
SemanticTokensProvider *SemanticTokensOptions `json:"semanticTokensProvider,omitempty"`
115115

116116
// Whether server provides moniker support.
117117
//
@@ -772,6 +772,9 @@ func (s *CallHierarchyOptions) UnmarshalJSON(data []byte) error {
772772
}
773773

774774
type SemanticTokensOptions struct {
775+
*TextDocumentRegistrationOptions
776+
*StaticRegistrationOptions
777+
775778
// WorkDoneProgressOptions
776779
// The legend used by the server
777780
Legend SemanticTokensLegend `json:"legend,required"`
@@ -806,12 +809,6 @@ func (x *BooleanOrEmptyStruct) UnmarshalJSON(data []byte) error {
806809

807810
}
808811

809-
type SemanticTokensRegistrationOptions struct {
810-
*TextDocumentRegistrationOptions
811-
*SemanticTokensOptions
812-
*StaticRegistrationOptions
813-
}
814-
815812
type SemanticTokensLegend struct {
816813
// The token types a server uses.
817814
TokenTypes []string `json:"tokenTypes"`

0 commit comments

Comments
 (0)