| 157 | } |
| 158 | |
| 159 | void 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 |
| 170 | bool LanguageServer::shouldCreateClient() |
nothing calls this directly
no outgoing calls
no test coverage detected