diff --git a/core/handler/completion_workspace_symbol.py b/core/handler/completion_workspace_symbol.py index 656442fdf6..323b692aaa 100644 --- a/core/handler/completion_workspace_symbol.py +++ b/core/handler/completion_workspace_symbol.py @@ -33,7 +33,7 @@ def process_response(self, response: dict) -> None: for item in response: symbol_name = item["name"] - symbol_kind = KIND_MAP[item.get("kind", 0)].lower() + symbol_kind = SYMBOL_MAP[symbol_name].lower() symbol_display_name = "{} [{}]".format(symbol_name, symbol_kind) symbol = { "key": symbol_name,