Skip to content

Commit 38a59a5

Browse files
committed
capabilities_server,general: reorder type
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent a13057e commit 38a59a5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

capabilities_server.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ type TextDocumentSyncOptions struct {
145145
Save *SaveOptions `json:"save,omitempty"`
146146
}
147147

148+
// SaveOptions save options.
149+
type SaveOptions struct {
150+
// IncludeText is the client is supposed to include the content on save.
151+
IncludeText bool `json:"includeText,omitempty"`
152+
}
153+
148154
// TextDocumentSyncKind defines how the host (editor) should sync document changes to the language server.
149155
type TextDocumentSyncKind float64
150156

@@ -176,12 +182,6 @@ func (k TextDocumentSyncKind) String() string {
176182
}
177183
}
178184

179-
// SaveOptions save options.
180-
type SaveOptions struct {
181-
// IncludeText is the client is supposed to include the content on save.
182-
IncludeText bool `json:"includeText,omitempty"`
183-
}
184-
185185
// CompletionOptions Completion options.
186186
type CompletionOptions struct {
187187
// The server provides support to resolve additional

general_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3703,11 +3703,11 @@ func testInitializeResult(t *testing.T, marshal marshalFunc, unmarshal unmarshal
37033703
wantType := InitializeResult{
37043704
Capabilities: ServerCapabilities{
37053705
TextDocumentSync: float64(1),
3706-
HoverProvider: true,
37073706
CompletionProvider: &CompletionOptions{
37083707
ResolveProvider: true,
37093708
TriggerCharacters: []string{"Tab"},
37103709
},
3710+
HoverProvider: true,
37113711
SignatureHelpProvider: &SignatureHelpOptions{
37123712
TriggerCharacters: []string{"C-K"},
37133713
RetriggerCharacters: []string{"."},

0 commit comments

Comments
 (0)