Schedule a PHPStan 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 — PHPStan is too slow to queue up multiple files.
(&self, uri: String)
| 1082 | /// types rapidly, earlier requests are superseded. This is |
| 1083 | /// intentional — PHPStan is too slow to queue up multiple files. |
| 1084 | fn schedule_phpstan(&self, uri: String) { |
| 1085 | *self.phpstan_pending_uri.lock() = Some(uri); |
| 1086 | self.phpstan_notify.notify_one(); |
| 1087 | } |
| 1088 | |
| 1089 | /// Long-lived background task that runs PHPStan on pending files. |
| 1090 | /// |
no outgoing calls
no test coverage detected