Skip to content

Commit

Permalink
Fix CI error.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 26, 2024
1 parent f053f56 commit f9d540f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions langserver/julials.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
"julia.lint.missingrefs": "all",
"julia.lint.disabledDirs": [],
"julia.completionmode": true
},
"support-single-file": true
}
}
3 changes: 1 addition & 2 deletions langserver/julials_darwin.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
"julia.lint.missingrefs": "all",
"julia.lint.disabledDirs": [],
"julia.completionmode": true
},
"support-single-file": true
}
}
7 changes: 2 additions & 5 deletions lsp_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f9d540f

Please sign in to comment.