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:
parent
4847168c5b
commit
9d2d8a4d39
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue