From 9a317473b72c97fc3d9022bd9f677d28ec7fd96b Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Mon, 5 Aug 2024 09:44:58 +0200 Subject: [PATCH] Synchronously index classes when fetching for eldoc hints --- phpinspect-eldoc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpinspect-eldoc.el b/phpinspect-eldoc.el index d8a85ec..613c1c4 100644 --- a/phpinspect-eldoc.el +++ b/phpinspect-eldoc.el @@ -70,7 +70,7 @@ be implemented for return values of `phpinspect-eld-strategy-execute'") (when type-before (let ((class (phpinspect-project-get-class-extra-or-create (phpinspect--resolvecontext-project rctx) - type-before)) + type-before 'no-enqueue)) (attribute-name (cadadr attrib)) variable method result) (when attribute-name @@ -177,7 +177,8 @@ be implemented for return values of `phpinspect-eld-strategy-execute'") (method-name-sym (phpinspect-intern-name (cadadr (phpinspect-meta-token (car match-result))))) (class (phpinspect-project-get-class-extra-or-create (phpinspect--resolvecontext-project rctx) - type-of-previous-statement)) + type-of-previous-statement + 'no-enqueue)) (method (if static (phpinspect--class-get-static-method class method-name-sym) (phpinspect--class-get-method class method-name-sym))))