Tags: ldelossa/litee.nvim
Tags
perf: async symbol gathering LSPs may return different results depending on the method being requested. for instance gopls will return no receiver name when a call hierarchy request is made, but will when a workspace symbol request is made. to work around this we make a workspace symbol request for each call hierarchy item returned when a calltree is invoked. this proved to be very slow when done sync so this commit makes it async using lua coroutines. Signed-off-by: ldelossa <[email protected]>
ui,tree: use workspace symbol if possible after researching #10 a bit more I found that certain LSPs (gopls here) provides more accurate symbol information via a workspace symbol query. it would be nice to receieve the same symbol info regardless of the lsp method being used. see: golang/go#49690 this pr now resolves the workspace symbol for all call hierarchy items placed into the tree. this is a bit slower (with gopls anyway) on start, however I've found that after some caching the results are snappy. Signed-off-by: ldelossa <[email protected]>