From f2c8a3a77fdd7f397e04edcaf5dae5e7777f03b6 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 30 Dec 2022 14:40:47 -0500 Subject: better ted_active_lsp, fix memory bug --- lsp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lsp.h') diff --git a/lsp.h b/lsp.h index b80fbb2..90f70d7 100644 --- a/lsp.h +++ b/lsp.h @@ -440,6 +440,8 @@ LSP *lsp_create(const char *root_dir, Language language, const char *analyzer_co bool lsp_try_add_root_dir(LSP *lsp, const char *new_root_dir); // report that this document has changed void lsp_document_changed(LSP *lsp, const char *document, LSPDocumentChangeEvent change); +// is this path in the LSP's workspace folders? +bool lsp_covers_path(LSP *lsp, const char *path); bool lsp_next_message(LSP *lsp, LSPMessage *message); bool lsp_position_eq(LSPPosition a, LSPPosition b); bool lsp_document_position_eq(LSPDocumentPosition a, LSPDocumentPosition b); -- cgit v1.2.3