@@ -838,7 +838,7 @@ func testReferencesParams(t *testing.T, marshal marshalFunc, unmarshal unmarshal
838
838
wantNilAll = `{"textDocument":{"uri":"file:///path/to/basic.go"},"position":{"line":25,"character":1},"context":{"includeDeclaration":true}}`
839
839
wantInvalid = `{"textDocument":{"uri":"file:///path/to/basic_gen.go"},"position":{"line":2,"character":1},"workDoneToken":"` + wantPartialResultToken + `","partialResultToken":"` + wantWorkDoneToken + `","context":{"includeDeclaration":false}}`
840
840
)
841
- wantType := ReferencesParams {
841
+ wantType := ReferenceParams {
842
842
TextDocumentPositionParams : TextDocumentPositionParams {
843
843
TextDocument : TextDocumentIdentifier {
844
844
URI : uri .File ("/path/to/basic.go" ),
@@ -858,7 +858,7 @@ func testReferencesParams(t *testing.T, marshal marshalFunc, unmarshal unmarshal
858
858
IncludeDeclaration : true ,
859
859
},
860
860
}
861
- wantTypeNilAll := ReferencesParams {
861
+ wantTypeNilAll := ReferenceParams {
862
862
TextDocumentPositionParams : TextDocumentPositionParams {
863
863
TextDocument : TextDocumentIdentifier {
864
864
URI : uri .File ("/path/to/basic.go" ),
@@ -878,7 +878,7 @@ func testReferencesParams(t *testing.T, marshal marshalFunc, unmarshal unmarshal
878
878
879
879
tests := []struct {
880
880
name string
881
- field ReferencesParams
881
+ field ReferenceParams
882
882
want string
883
883
wantMarshalErr bool
884
884
wantErr bool
@@ -929,7 +929,7 @@ func testReferencesParams(t *testing.T, marshal marshalFunc, unmarshal unmarshal
929
929
tests := []struct {
930
930
name string
931
931
field string
932
- want ReferencesParams
932
+ want ReferenceParams
933
933
wantUnmarshalErr bool
934
934
wantErr bool
935
935
}{
@@ -961,7 +961,7 @@ func testReferencesParams(t *testing.T, marshal marshalFunc, unmarshal unmarshal
961
961
t .Run (tt .name , func (t * testing.T ) {
962
962
t .Parallel ()
963
963
964
- var got ReferencesParams
964
+ var got ReferenceParams
965
965
if err := unmarshal ([]byte (tt .field ), & got ); (err != nil ) != tt .wantUnmarshalErr {
966
966
t .Fatal (err )
967
967
}
@@ -3697,7 +3697,7 @@ func testFoldingRangeRegistrationOptions(t *testing.T, marshal marshalFunc, unma
3697
3697
3698
3698
func testInitializeResult (t * testing.T , marshal marshalFunc , unmarshal unmarshalFunc ) {
3699
3699
const (
3700
- want = `{"capabilities":{"textDocumentSync":1,"hoverProvider":true,"completionProvider":{"resolveProvider":true,"triggerCharacters":["Tab"]},"signatureHelpProvider":{"triggerCharacters":["C-K"],"retriggerCharacters":["."]},"declarationProvider":true,"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":true,"codeLensProvider":{"resolveProvider":true},"documentFormattingProvider":true,"documentRangeFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":".","moreTriggerCharacter":["f"]},"renameProvider":true,"documentLinkProvider":{"resolveProvider":true},"colorProvider":true,"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["test","command"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"testNotifications"},"fileOperations":{"didCreate":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willCreate":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]},"didRename":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willRename":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]},"didDelete":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willDelete":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]}}},"linkedEditingRangeProvider":true,"callHierarchyProvider":true,"monikerProvider":true,"experimental":"Awesome Experimentals"},"serverInfo":{"name":"testServer","version":"v0.0.0"}}`
3700
+ want = `{"capabilities":{"textDocumentSync":1,"completionProvider":{"resolveProvider":true,"triggerCharacters":["Tab"]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["C-K"],"retriggerCharacters":["."]},"declarationProvider":true,"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"codeLensProvider":{"resolveProvider":true},"documentLinkProvider":{"resolveProvider":true},"colorProvider":true,"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentRangeFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":".","moreTriggerCharacter":["f"]},"renameProvider":true,"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["test","command"]},"callHierarchyProvider":true,"linkedEditingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"testNotifications"},"fileOperations":{"didCreate":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willCreate":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]},"didRename":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willRename":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]},"didDelete":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"file","options":{"ignoreCase":true}}}]},"willDelete":{"filters":[{"scheme":"file","pattern":{"glob":"*","matches":"folder","options":{"ignoreCase":true}}}]}}},"monikerProvider":true,"experimental":"Awesome Experimentals"},"serverInfo":{"name":"testServer","version":"v0.0.0"}}`
3701
3701
wantNil = `{"capabilities":{}}`
3702
3702
)
3703
3703
wantType := InitializeResult {
0 commit comments