From f9d540ff451d9a0ee92819b84472820f16be15d5 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 27 Sep 2024 01:26:35 +0800 Subject: [PATCH] Fix CI error. --- langserver/julials.json | 3 +-- langserver/julials_darwin.json | 3 +-- lsp_bridge.py | 7 ++----- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/langserver/julials.json b/langserver/julials.json index 86710ac873..e5e93326fe 100644 --- a/langserver/julials.json +++ b/langserver/julials.json @@ -22,6 +22,5 @@ "julia.lint.missingrefs": "all", "julia.lint.disabledDirs": [], "julia.completionmode": true - }, - "support-single-file": true + } } diff --git a/langserver/julials_darwin.json b/langserver/julials_darwin.json index 17224e98a3..c9e99a8158 100644 --- a/langserver/julials_darwin.json +++ b/langserver/julials_darwin.json @@ -22,6 +22,5 @@ "julia.lint.missingrefs": "all", "julia.lint.disabledDirs": [], "julia.completionmode": true - }, - "support-single-file": true + } } diff --git a/lsp_bridge.py b/lsp_bridge.py index 4eb1da5c0c..c1eb88cca8 100755 --- a/lsp_bridge.py +++ b/lsp_bridge.py @@ -756,11 +756,8 @@ def load_single_lang_server(self, project_path, filepath): # If project_path is file path, not dir. if ((not os.path.isdir(project_path)) and - # 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))): + ("support-single-file" in lang_server_info and + lang_server_info["support-single-file"] is False)): if "project-files" in lang_server_info: # If support-support-single-file is False,