PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

Visual studio completions don't support variables in the edit text

Open rchiodo opened this issue 11 months ago • 1 comments

Open the file here: https://github.com/microsoft/pylance-release/blob/main/testing/single/src/completion.py

Run the last example, that is trying to add completions for the __init__ method.

Expected result:

# bring up override completion after `__init__` and confirm `__init__` is suggested
# commit the completion and confirm the generated code. also verify undo work.
class BuiltInMethod:
    def __init__(self) -> None:
        pass

Actual result:

# bring up override completion after `__init__` and confirm `__init__` is suggested
# commit the completion and confirm the generated code. also verify undo work.
class BuiltInMethod:
    def __init__(self) -> None:
    ${0:pass}

rchiodo avatar Mar 25 '24 22:03 rchiodo