PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

It showed empty class name when type @.

Open linette-zyy opened this issue 1 year ago • 3 comments

Environment image

Expected behavior image

Actual result and screenshots image

linette-zyy avatar Jan 17 '24 09:01 linette-zyy

One of the completion items returned from pylance is

{
        "label": "",
        "kind": 7,
        "data": {
          "workspacePath": "C:\\Users\\stellahuang\\source\\repos\\PythonApplication9\\PythonApplication9",
          "filePath": "C:\\Users\\stellahuang\\source\\repos\\PythonApplication9\\PythonApplication9\\PythonApplication9.py",
          "position": {
            "line": 1,
            "character": 5
          },
          "funcParensDisabled": true,
          "symbolLabel": ""
        },
        "sortText": "05.0000.",
        "command": {
          "title": "",
          "command": "pylance.completionAccepted",
          "arguments": []
        }
      },

needs to investigate why it returns empty string

StellaHuang95 avatar Jan 17 '24 18:01 StellaHuang95

The empty label comes from the symbol table. image

StellaHuang95 avatar Jan 18 '24 00:01 StellaHuang95

image

StellaHuang95 avatar Jan 23 '24 18:01 StellaHuang95