LanguageClient: Make sure to run callback in all code paths

... when receiving a reply for textDocument/definition.

Change-Id: I08f3a22f7c39a33b7b84539125a76d0c0d625692
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-09-30 16:02:39 +02:00
parent ec7c60cd67
commit d52e7b9398
2 changed files with 7 additions and 6 deletions

View File

@@ -506,9 +506,6 @@ void ClangdTestLocalReferences::test()
client()->findLocalUsages(doc, cursor, std::move(handler));
timer.start(10000);
loop.exec();
QEXPECT_FAIL("cursor not on identifier", "clangd bug: go to definition does not return", Abort);
QEXPECT_FAIL("template parameter member access",
"clangd bug: go to definition does not return", Abort);
QVERIFY(timer.isActive());
timer.stop();