From 2d32df18e83b059834ae65904e6439c72372454b Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 6 Jan 2023 12:02:11 -0500 Subject: lsp-log setting --- ted.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ted.c') diff --git a/ted.c b/ted.c index 4a76cd7..ae1908b 100644 --- a/ted.c +++ b/ted.c @@ -191,8 +191,9 @@ LSP *ted_get_lsp(Ted *ted, const char *path, Language language) { return NULL; // why are there so many LSP open??? if (*settings->lsp) { // start up this LSP + FILE *log = settings->lsp_log ? ted->log : NULL; char *root_dir = settings_get_root_dir(settings, path); - ted->lsps[i] = lsp_create(root_dir, settings->lsp, settings->lsp_configuration); + ted->lsps[i] = lsp_create(root_dir, settings->lsp, settings->lsp_configuration, log); free(root_dir); // don't actually return it yet, since it's still initializing (see above) } -- cgit v1.2.3