| 4 | } |
| 5 | |
| 6 | void VirtualFileSystem::UpdateFile(std::string_view uri, const lsp::Range &range, std::string &&text) { |
| 7 | std::string uriString(uri); |
| 8 | auto opFileId = _uriDB.Query(uriString); |
| 9 | if (!opFileId.has_value()) { |
| 10 | auto fileId = _fileDB.AllocFileId(); |
| 11 | opFileId = fileId; |
| 12 | _uriDB.Input(uriString, std::move(fileId)); |
| 13 | } |
| 14 | |
| 15 | UpdateFile(opFileId.value(), range, std::move(text)); |
| 16 | } |
| 17 | |
| 18 | void VirtualFileSystem::UpdateFile(std::string_view uri, std::string &&text) { |
| 19 | std::string uriString(uri); |
no test coverage detected