Schedule a Mago lint run for a single file. Only the most recent file is kept: if the user switches files or types rapidly, earlier requests are superseded.
(&self, uri: String)
| 1432 | /// Only the most recent file is kept: if the user switches files or |
| 1433 | /// types rapidly, earlier requests are superseded. |
| 1434 | fn schedule_mago_lint(&self, uri: String) { |
| 1435 | *self.mago_lint_pending_uri.lock() = Some(uri); |
| 1436 | self.mago_lint_notify.notify_one(); |
| 1437 | } |
| 1438 | |
| 1439 | /// Long-lived background task that runs `mago lint` on pending files. |
| 1440 | /// |
no outgoing calls
no test coverage detected