aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorPhilipp Mildenberger2023-04-05 16:08:14 +0000
committerPhilipp Mildenberger2023-05-18 19:58:17 +0000
commitdcb07673f8f1f22b7a5f8fd56b8dd74107e3096e (patch)
tree2cfbfd1f2bb8431dbb63a05b981d832b2000b463 /helix-lsp
parent56748509bdb6cb16006ccc06eb15a7ee09028afc (diff)
Reorder id generation for Clients to stay close to the old behavior
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 3fd9c2bf..66082503 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -665,8 +665,8 @@ impl Registry {
.language_server_configs()
.get(&name)
.ok_or_else(|| anyhow::anyhow!("Language server '{name}' not defined"))?;
- self.counter += 1;
let id = self.counter;
+ self.counter += 1;
let NewClient(client, incoming) = start_client(
id,
name,