lang/langserver: Stub out DocumentLink

We have no constructs right now that generate links to anywhere, so we'll
just ignore this altogether for now.
f-langserver
Martin Atkins 7 years ago committed by Radek Simko
parent 1d722544fc
commit cec22e1321
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7

@ -187,8 +187,7 @@ func (s *server) CodeLensResolve(context.Context, *lsp.CodeLens) (*lsp.CodeLens,
}
func (s *server) DocumentLink(context.Context, *lsp.DocumentLinkParams) ([]lsp.DocumentLink, error) {
log.Printf("[DEBUG] langserver: DocumentLink")
return nil, notImplemented("DocumentLink")
return nil, nil // Ignore; we don't recognize links in any document
}
func (s *server) DocumentLinkResolve(context.Context, *lsp.DocumentLink) (*lsp.DocumentLink, error) {

Loading…
Cancel
Save