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>)
| 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 ─────────────────────────────────────────────────── |
no test coverage detected