Eglot: error if no hierarchies available at point

* lisp/progmodes/eglot.el (eglot--hierarchy-1): Error if no
hierarchy at point.
This commit is contained in:
João Távora 2025-02-11 15:28:59 +00:00
parent 4847168c5b
commit 9d2d8a4d39

View file

@ -4532,6 +4532,7 @@ If NOERROR, return predicate, else erroring function."
server
preparer
(eglot--TextDocumentPositionParams))))
(unless roots (eglot--error "No hierarchy information here"))
(with-current-buffer (get-buffer-create name)
(eglot-hierarchy-mode)
(setq-local