From 9ea0a3fb789b663530ac89dfd9aa5cd9c2a85194 Mon Sep 17 00:00:00 2001 From: Philip Nelson Date: Thu, 17 Aug 2017 17:17:11 +1000 Subject: [PATCH] use getOrLoad()->wait(). TODO - work out how to make this better --- src/SignatureHelpProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SignatureHelpProvider.php b/src/SignatureHelpProvider.php index 3dcae23..04b272b 100644 --- a/src/SignatureHelpProvider.php +++ b/src/SignatureHelpProvider.php @@ -64,7 +64,7 @@ class SignatureHelpProvider : 0; // Get information from the item being called to build the signature information - $calledDoc = $this->documentLoader->get($def->symbolInformation->location->uri); + $calledDoc = $this->documentLoader->getOrLoad($def->symbolInformation->location->uri)->wait(); if (!$calledDoc) { return new SignatureHelp(); }