From 874d7d0c6555642b06c6d2c3e75c6eddf1c94bd0 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 3 Jan 2023 18:36:05 -0500 Subject: don't start up multiple LSP servers with the same command --- lsp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lsp.h') 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) -- cgit v1.2.3