MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / createPythonServ

Function createPythonServ

src/tools/languageadapter/main.cpp:123–137  ·  view source on GitHub ↗

setting from pyls trismit

Source from the content-addressed store, hash-verified

121
122// setting from pyls trismit
123QProcess *createPythonServ(const newlsp::ProjectKey &key)
124{
125 lspServOut << __FUNCTION__ << qApp->thread() << QThread::currentThread();
126 if (key.language != newlsp::Python)
127 return nullptr;
128
129 auto proc = new QProcess();
130 auto env = proc->processEnvironment();
131 env.insert("PYTHONPATH", packageInstallPath("python3"));
132 proc->setProcessEnvironment(env);
133 proc->setProgram("python3");
134 proc->setArguments({ "-m", "pylsp", "-v" });
135
136 return proc;
137}
138
139// setting from pyls trismit
140QProcess *createJSServ(const newlsp::ProjectKey &key)

Callers

nothing calls this directly

Calls 5

insertMethod · 0.80
setProcessEnvironmentMethod · 0.80
packageInstallPathFunction · 0.70
setProgramMethod · 0.45
setArgumentsMethod · 0.45

Tested by

no test coverage detected