| 217 | } |
| 218 | |
| 219 | void LSPDocumentClient::requestCodeLens() { |
| 220 | if ( !mServer || !mServer->getCapabilities().codeLensProvider.supported ) |
| 221 | return; |
| 222 | |
| 223 | URI uri = mDoc->getURI(); |
| 224 | LSPClientServer* server = mServer; |
| 225 | LSPDocumentClient* docClient = this; |
| 226 | mServer->documentCodeLens( |
| 227 | uri, [uri, server, docClient]( const auto&, const std::vector<LSPCodeLens>& codeLens ) { |
| 228 | if ( server->hasDocument( uri ) ) { |
| 229 | docClient->mCodeLens = codeLens; |
| 230 | } |
| 231 | } ); |
| 232 | } |
| 233 | |
| 234 | UISceneNode* LSPDocumentClient::getUISceneNode() { |
| 235 | LSPClientServer* server = mServer; |
no test coverage detected