Schedule a PHPCS run for a single file. Only the most recent file is kept: if the user switches files or types rapidly, earlier requests are superseded. This is intentional — PHPCS is too slow to queue up multiple files.
(&self, uri: String)
| 1268 | /// types rapidly, earlier requests are superseded. This is |
| 1269 | /// intentional — PHPCS is too slow to queue up multiple files. |
| 1270 | fn schedule_phpcs(&self, uri: String) { |
| 1271 | *self.phpcs_pending_uri.lock() = Some(uri); |
| 1272 | self.phpcs_notify.notify_one(); |
| 1273 | } |
| 1274 | |
| 1275 | /// Long-lived background task that runs PHPCS on pending files. |
| 1276 | /// |
no outgoing calls
no test coverage detected