(&self)
| 821 | } |
| 822 | |
| 823 | pub async fn list(&self) -> Vec<(String, Arc<LspClient>)> { |
| 824 | self.clients |
| 825 | .read() |
| 826 | .await |
| 827 | .iter() |
| 828 | .map(|(k, v)| (k.clone(), v.clone())) |
| 829 | .collect() |
| 830 | } |
| 831 | |
| 832 | /// Returns true if any LSP clients are currently registered. |
| 833 | /// Mirrors the TS `LSP.hasClients(file)` which checks whether any server |