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:
@@ -69,7 +69,7 @@ static void sendTextDocumentPositionParamsRequest(Client *client,
|
||||
sendMessage = Utils::get<bool>(*provider);
|
||||
}
|
||||
if (sendMessage)
|
||||
client->sendContent(request);
|
||||
client->sendMessage(request);
|
||||
}
|
||||
|
||||
static void handleGotoDefinitionResponse(const GotoDefinitionRequest::Response &response,
|
||||
@@ -313,7 +313,7 @@ void SymbolSupport::requestPrepareRename(const TextDocumentPositionParams ¶m
|
||||
}
|
||||
}
|
||||
});
|
||||
m_client->sendContent(request);
|
||||
m_client->sendMessage(request);
|
||||
}
|
||||
|
||||
void SymbolSupport::requestRename(const TextDocumentPositionParams &positionParams,
|
||||
@@ -326,7 +326,7 @@ void SymbolSupport::requestRename(const TextDocumentPositionParams &positionPara
|
||||
request.setResponseCallback([this, search](const RenameRequest::Response &response) {
|
||||
handleRenameResponse(search, response);
|
||||
});
|
||||
m_client->sendContent(request);
|
||||
m_client->sendMessage(request);
|
||||
search->setTextToReplace(newName);
|
||||
search->popup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user