MCPcopy Create free account
hub / github.com/cpeditor/cpeditor / updateLanguageServerFilePath

Method updateLanguageServerFilePath

src/appwindow.cpp:997–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997void AppWindow::updateLanguageServerFilePath(MainWindow *window, const QString &path)
998{
999 if (currentWindow() == window)
1000 {
1001 if (window->getLanguage() == "C++" && cppServer->isDocumentOpen())
1002 cppServer->updatePath(path);
1003 else if (window->getLanguage() == "Java" && javaServer->isDocumentOpen())
1004 javaServer->updatePath(path);
1005 else if (window->getLanguage() == "Python" && pythonServer->isDocumentOpen())
1006 pythonServer->updatePath(path);
1007 }
1008}
1009
1010void AppWindow::onEditorLanguageChanged(MainWindow *window)
1011{

Callers

nothing calls this directly

Calls 3

getLanguageMethod · 0.80
isDocumentOpenMethod · 0.80
updatePathMethod · 0.45

Tested by

no test coverage detected