Skip to content

Commit

Permalink
Fix issue #936, fix rust-analyzer check condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed May 10, 2024
1 parent b581c98 commit b8768c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/handler/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_display_label(self, item, display_new_text):

# Optimizing for Rust
try:
if self.method_server_name == "rust-analyzer" and "(\u2026)" in label or "()" in label: # '\u2026' is the unicode char: '…'
if (self.method_server_name == "rust-analyzer") and ("(\u2026)" in label or "()" in label): # '\u2026' is the unicode char: '…'
# When finding an ellipsis in 'label'
# replace 'fn' with function name in 'label'
function_name = label.split('(')[0]
Expand Down

0 comments on commit b8768c4

Please sign in to comment.