summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-08 09:39:39 -0500
committerpommicket <pommicket@gmail.com>2023-01-08 09:39:39 -0500
commit498b670de076909452c0fd6bc4629aca8974d9f7 (patch)
tree56f773483edd0adf90e0ebedb826e3cd4e51208d /lsp.h
parent01d5fcc72f6ea29d0f90b845b7565137e7daac14 (diff)
fix up stuff for when LSP server exits
Diffstat (limited to 'lsp.h')
-rw-r--r--lsp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp.h b/lsp.h
index 5d5fc1b..68e90e6 100644
--- a/lsp.h
+++ b/lsp.h
@@ -559,8 +559,8 @@ typedef struct LSP {
// (when the initialize response is received)
_Atomic bool initialized;
// has the LSP server exited?
- // thread-safety: only set to false once when the process dies
- _Atomic bool died;
+ // thread-safety: atomic
+ _Atomic bool exited;
// thread-safety: only set once in lsp_create.
char *command;
// this is set in lsp_create, then later set to NULL when we send over the configuration (after the initialized notification).