forked from qt-creator/qt-creator
LanguageServerProtocol: remove IContent
Do not pretend to support multiple message types, while no other messages are actually implemented by us or even known to exist in the wild. Change-Id: I49ee2118b2e10f265ac641c195df8a9e5c97951c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include "clangdast.h"
|
||||
|
||||
#include <languageclient/client.h>
|
||||
#include <languageserverprotocol/icontent.h>
|
||||
#include <languageserverprotocol/jsonkeys.h>
|
||||
#include <languageserverprotocol/lsptypes.h>
|
||||
#include <utils/filepath.h>
|
||||
@@ -403,7 +402,7 @@ MessageId requestAst(Client *client, const FilePath &filePath, const Range range
|
||||
const auto result = response.result();
|
||||
handler(result ? *result : ClangdAstNode(), reqId);
|
||||
});
|
||||
client->sendContent(request, Client::SendDocUpdates::Ignore);
|
||||
client->sendMessage(request, Client::SendDocUpdates::Ignore);
|
||||
return request.id();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user