From 66abe55e5c92f439b35ff3c6f477e0aa218a6d37 Mon Sep 17 00:00:00 2001 From: "nohz.afk" <149959021+nohzafk@users.noreply.github.com> Date: Sat, 27 Jul 2024 01:26:49 +0800 Subject: [PATCH] handle lang_server is empty list --- lsp_bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp_bridge.py b/lsp_bridge.py index 40aade5a26..4f9459d415 100755 --- a/lsp_bridge.py +++ b/lsp_bridge.py @@ -990,7 +990,7 @@ def read_lang_server_info(lang_server_path): def load_single_server_info(lang_server): lang_server_info_path = "" - if os.path.exists(lang_server) and os.path.dirname(lang_server) != "": + if isinstance(lang_server, str) and os.path.exists(lang_server) and os.path.dirname(lang_server) != "": # If lang_server is real file path, we load the LSP server configuration from the user specified file. lang_server_info_path = lang_server else: