diff options
author | pommicket <pommicket@gmail.com> | 2022-12-27 13:04:50 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-27 13:04:50 -0500 |
commit | 27b8b36aea3bb5913a600bc7e5b41f68557c2587 (patch) | |
tree | 1c03dfff45503c9ad2f745a66365a84cb7d2935d /lsp.c | |
parent | 53451f331667180e4b30c1ac0bf33bb48beb37f0 (diff) |
fixed previous issues, + "save as" should now work
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); |