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

Method schedule_mago_lint

src/diagnostics/mod.rs:1434–1437  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

schedule_diagnosticsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected