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

Method progress_end

src/util.rs:1825–1837  ·  view source on GitHub ↗

Send a `WorkDoneProgressEnd` notification. After this call the editor removes the progress indicator. `message` is an optional final status line (e.g. "Indexed 5,678 classes").

(&self, token: &NumberOrString, message: Option<String>)

Source from the content-addressed store, hash-verified

1823 /// `message` is an optional final status line (e.g. "Indexed 5,678
1824 /// classes").
1825 pub(crate) async fn progress_end(&self, token: &NumberOrString, message: Option<String>) {
1826 use tower_lsp::lsp_types::notification::Progress;
1827
1828 let Some(client) = &self.client else { return };
1829 client
1830 .send_notification::<Progress>(ProgressParams {
1831 token: token.clone(),
1832 value: ProgressParamsValue::WorkDone(WorkDoneProgress::End(WorkDoneProgressEnd {
1833 message,
1834 })),
1835 })
1836 .await;
1837 }
1838}
1839
1840// ─── Self-keyword helpers ───────────────────────────────────────────────────

Callers 4

initializedMethod · 0.80
goto_implementationMethod · 0.80
referencesMethod · 0.80
subtypesMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected