Skip to content

Commit

Permalink
Merge pull request #1000 from nohzafk/bugfix/lang_server_type
Browse files Browse the repository at this point in the history
handle lang_server is empty list
  • Loading branch information
manateelazycat committed Jul 26, 2024
2 parents cd0a08d + 66abe55 commit e166250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e166250

Please sign in to comment.