Schedule a Mago analyze 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)
| 1568 | /// Only the most recent file is kept: if the user switches files or |
| 1569 | /// types rapidly, earlier requests are superseded. |
| 1570 | fn schedule_mago_analyze(&self, uri: String) { |
| 1571 | *self.mago_analyze_pending_uri.lock() = Some(uri); |
| 1572 | self.mago_analyze_notify.notify_one(); |
| 1573 | } |
| 1574 | |
| 1575 | /// Long-lived background task that runs `mago analyze` on pending files. |
| 1576 | /// |
no outgoing calls
no test coverage detected