forked from qt-creator/qt-creator
CommandLine: Use more 1-arg c'tor
Change-Id: If52c4094f94859d51e31862d913b1756e333e512 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -151,7 +151,7 @@ PyLSClient *clientForPython(const FilePath &python)
|
||||
if (auto client = pythonClients()[python])
|
||||
return client;
|
||||
auto interface = new PyLSInterface;
|
||||
interface->setCommandLine(CommandLine(python, {"-m", "pylsp"}));
|
||||
interface->setCommandLine({python, {"-m", "pylsp"}});
|
||||
auto client = new PyLSClient(interface);
|
||||
client->setName(Tr::tr("Python Language Server (%1)").arg(python.toUserOutput()));
|
||||
client->setActivateDocumentAutomatically(true);
|
||||
|
||||
Reference in New Issue
Block a user