summaryrefslogtreecommitdiff
path: root/lsp.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 18:36:05 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 18:36:05 -0500
commit874d7d0c6555642b06c6d2c3e75c6eddf1c94bd0 (patch)
tree3760b3aa26466c1a6e3355a18f11e456a6f84d4a /lsp.h
parenta648291509aa3b0f91a4b3032b780f1f688379d2 (diff)
don't start up multiple LSP servers with the same command
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 c146a9b..f65004f 100644
--- a/lsp.h
+++ b/lsp.h
@@ -530,7 +530,7 @@ typedef struct LSP {
// (when the initialize response is received)
bool initialized;
// thread-safety: only set once in lsp_create.
- Language language;
+ char *command;
LSPThread communication_thread;
LSPSemaphore quit_sem;
// thread-safety: only accessed in communication thread
@@ -569,7 +569,7 @@ void lsp_cancel_request(LSP *lsp, LSPRequestID id);
// don't free the contents of this response! let me handle it!
void lsp_send_response(LSP *lsp, LSPResponse *response);
const char *lsp_response_string(const LSPResponse *response, LSPString string);
-LSP *lsp_create(const char *root_dir, Language language, const char *analyzer_command);
+LSP *lsp_create(const char *root_dir, const char *analyzer_command);
// try to add a new "workspace folder" to the lsp.
// IMPORTANT: only call this if lsp->initialized is true
// (if not we don't yet know whether the server supports workspace folders)