| 131 | } |
| 132 | |
| 133 | bool normalizeFolder(std::string &path) { |
| 134 | for (auto &[root, real] : g_config->workspaceFolders) { |
| 135 | StringRef p(path); |
| 136 | if (p.startswith(root)) |
| 137 | return true; |
| 138 | if (p.startswith(real)) { |
| 139 | path = root + path.substr(real.size()); |
| 140 | return true; |
| 141 | } |
| 142 | } |
| 143 | return false; |
| 144 | } |
| 145 | |
| 146 | std::optional<int64_t> lastWriteTime(const std::string &path) { |
| 147 | sys::fs::file_status status; |
no test coverage detected