diff options
Diffstat (limited to 'lsp.c')
-rw-r--r-- | lsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,8 +1,7 @@ // print server-to-client communication #define LSP_SHOW_S2C 0 // print client-to-server communication -#define LSP_SHOW_C2S 1 - +#define LSP_SHOW_C2S 0 #define write_bool lsp_write_bool @@ -325,6 +324,9 @@ LSP *lsp_create(const char *root_dir, Language language, const char *analyzer_co LSP *lsp = calloc(1, sizeof *lsp); if (!lsp) return NULL; + static _Atomic LSPID curr_id = 1; + lsp->id = curr_id++; + #if DEBUG printf("Starting up LSP %p `%s` for language %s in %s\n", (void *)lsp, analyzer_command, language_to_str(language), root_dir); |