forked from qt-creator/qt-creator
LSP: use QtcProcess::splitArgs for language server arguments
Also store the executable and arguments in the stdio client to get a more accurate comparison of clients. Change-Id: I84fdd4ea5f32b17198d3f08e7f5d494f7fbe67dc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -170,6 +170,15 @@ void LanguageClientManager::removeMarks(const Core::Id &id)
|
||||
removeMarks(fileName, id);
|
||||
}
|
||||
|
||||
void LanguageClientManager::startClient(LanguageClientSettings setting)
|
||||
{
|
||||
auto client = new StdIOClient(setting.m_executable, setting.m_arguments);
|
||||
client->setName(setting.m_name);
|
||||
if (setting.m_mimeType != noLanguageFilter)
|
||||
client->setSupportedMimeType({setting.m_mimeType});
|
||||
startClient(client);
|
||||
}
|
||||
|
||||
void LanguageClientManager::startClient(BaseClient *client)
|
||||
{
|
||||
managerInstance->m_clients.append(client);
|
||||
|
||||
Reference in New Issue
Block a user