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

Method updatePath

src/Extensions/LanguageServer.cpp:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void LanguageServer::updatePath(QString const &newPath)
160{
161 if (lsp == nullptr || (openFile == newPath))
162 return;
163 auto *tmpLogger = logger;
164 auto *tmpEditor = m_editor;
165 closeDocument();
166 openDocument(newPath, tmpEditor, tmpLogger);
167}
168
169// Private methods
170bool LanguageServer::shouldCreateClient()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected