()
| 807 | |
| 808 | impl LspClientRegistry { |
| 809 | pub fn new() -> Self { |
| 810 | Self { |
| 811 | clients: RwLock::new(HashMap::new()), |
| 812 | } |
| 813 | } |
| 814 | |
| 815 | pub async fn register(&self, id: String, client: Arc<LspClient>) { |
| 816 | self.clients.write().await.insert(id, client); |