aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-02 02:10:00 +0000
committerBlaž Hrastnik2021-09-06 06:25:46 +0000
commit48fd4843fc4a28bfd05ea01ef0d10f4ea816db20 (patch)
treef4003806f6152ee2c79e3271419fea01c3d7dbd1 /helix-lsp
parent10b690b5bd5d3e9ee477782ebfe3f6ff8d11cb3f (diff)
lsp: Outdated comment
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/lib.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 3a761ad0..e10c107b 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -437,32 +437,6 @@ impl LspProgressMap {
}
}
-// REGISTRY = HashMap<LanguageId, Lazy/OnceCell<Arc<RwLock<Client>>>
-// spawn one server per language type, need to spawn one per workspace if server doesn't support
-// workspaces
-//
-// could also be a client per root dir
-//
-// storing a copy of Option<Arc<RwLock<Client>>> on Document would make the LSP client easily
-// accessible during edit/save callbacks
-//
-// the event loop needs to process all incoming streams, maybe we can just have that be a separate
-// task that's continually running and store the state on the client, then use read lock to
-// retrieve data during render
-// -> PROBLEM: how do you trigger an update on the editor side when data updates?
-//
-// -> The data updates should pull all events until we run out so we don't frequently re-render
-//
-//
-// v2:
-//
-// there should be a registry of lsp clients, one per language type (or workspace).
-// the clients should lazy init on first access
-// the client.initialize() should be called async and we buffer any requests until that completes
-// there needs to be a way to process incoming lsp messages from all clients.
-// -> notifications need to be dispatched to wherever
-// -> requests need to generate a reply and travel back to the same lsp!
-
#[cfg(test)]
mod tests {
use super::{lsp, util::*, OffsetEncoding};