MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / schedule_phpstan

Method schedule_phpstan

src/diagnostics/mod.rs:1084–1087  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

schedule_diagnosticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected