Add some more logs for settings and decorations response
Summary:
This changes adds a log statement when settings are loaded
and when the server responds to a decorations request
Test Plan: Tests still pass
Reviewers: fromberger, zarko
Subscribers: #core_team
@@ -69,6 +69,8 @@ func (ls *Server) Initialize(params lsp.InitializeParams) (*lsp.InitializeResult
return nil, err
}
+ log.Printf("Server Settings: %#v", s)
+
err = ls.paths.loadSettings(*s)
if err != nil {
return nil, err
@@ -116,6 +118,8 @@ func (ls *Server) TextDocumentDidOpen(params lsp.DidOpenTextDocumentParams) erro
return fmt.Errorf("failed to find xrefs for %s:\n%v", local, err)
}
+ log.Printf("Server returned %d refs in file %q", len(dec.Reference), local)
+
var refs []*RefResolution
for _, r := range dec.Reference {
if r.Span == nil {
