Skip to content

Commit

Permalink
If support-single-file not exist, still need test project-files.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 26, 2024
1 parent 34f92a5 commit f053f56
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lsp_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,13 @@ def load_single_lang_server(self, project_path, filepath):

lang_server_info = load_single_server_info(single_lang_server)

# If project_path is file path, not dir.
if ((not os.path.isdir(project_path)) and
"support-single-file" in lang_server_info and
lang_server_info["support-single-file"] is False):
# Try to find "project-files" option to detect project root.
# support-single-file is False or support-single-file option is not exist.
(("support-single-file" in lang_server_info and
lang_server_info["support-single-file"] is False) or
("support-single-file" not in lang_server_info))):

if "project-files" in lang_server_info:
# If support-support-single-file is False,
Expand Down

0 comments on commit f053f56

Please sign in to comment.