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

Method schedule_phpcs

src/diagnostics/mod.rs:1270–1273  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

schedule_diagnosticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected