(&self, params: SignatureHelpParams)
| 799 | } |
| 800 | |
| 801 | async fn signature_help(&self, params: SignatureHelpParams) -> Result<Option<SignatureHelp>> { |
| 802 | let uri = params |
| 803 | .text_document_position_params |
| 804 | .text_document |
| 805 | .uri |
| 806 | .to_string(); |
| 807 | let position = params.text_document_position_params.position; |
| 808 | |
| 809 | let backend = self.clone_for_blocking(); |
| 810 | let uri_clone = uri.clone(); |
| 811 | tokio::task::spawn_blocking(move || { |
| 812 | backend.handle_with_position("signature_help", &uri_clone, position, |content, pos| { |
| 813 | backend.handle_signature_help(&uri_clone, content, pos) |
| 814 | }) |
| 815 | }) |
| 816 | .await |
| 817 | .unwrap_or(Ok(None)) |
| 818 | } |
| 819 | |
| 820 | async fn document_highlight( |
| 821 | &self, |
no test coverage detected