bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63651: possible eglot xref-find-references optimization


From: Alan Donovan
Subject: bug#63651: possible eglot xref-find-references optimization
Date: Wed, 24 May 2023 17:22:48 -0400

On Wed, 24 May 2023 at 12:29, João Távora <joaotavora@gmail.com> wrote:
> Thanks for reporting this Alan, it is an interesting point. (Next time you 
> can add me on CC directly so that i don't miss the message in this list, 
> which i don't always track closely)

Will do.

> Could you provide a test case where these ~= 1300 xref matches are produced? 
> I suppose it is some Go repository? With a standard gopls? But which 
> file/position and which command should one use?

$ git clone https://github.com/golang/tools
$ cd tools
$ (cd gopls && go install)   # if you don't have it already
$ emacs gopls/internal/lsp/cache/analysis.go
Then search for fmt.Sprintf (e.g. on L246) and do xref-find-references
on it. I get about 1300 matches.

cheers
alan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]