Skip to content

Commit

Permalink
Simple code.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 3, 2023
1 parent 25a3fb8 commit db9e56a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/handler/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,12 @@ def process_response(self, response: dict) -> None:
# to handle different libraries provide the same function.
key = f"{label}_{detail}"

# Get display label.
display_label = self.get_display_label(item, display_new_text)

# Build candidate.
candidate = {
"key": key,
"icon": annotation,
"label": label,
"display-label": display_label,
"display-label": self.get_display_label(item, display_new_text),
"deprecated": 1 in item.get("tags", []),
"insertText": item.get('insertText', None),
"insertTextFormat": item.get("insertTextFormat", ''),
Expand Down

0 comments on commit db9e56a

Please sign in to comment.