lsp-mode
lsp-mode copied to clipboard
can lsp-find-locations function raise an error when no result return?
Is your feature related or already mentioned on the wishlist? NO
Describe your feature here. lsp can return function definitions. but some time lsp can not return the definition, but other tags system can. so I want to try other method when lsp can not find definitions. but lsp-find-locations only print an error message, it is hard to consider whether lsp can not return result. so I want lsp-find-locations function raise an error when no result comes. I modified just like: (error (lsp--error "Not found for: %s" (or (thing-at-point 'symbol t) "")))
so i can check error signal to call other method to search code.
Can I get this in the main release?
thanks.