Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rchiodo opened this issue Mar 25, 2024 · 1 comment
Open

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

rchiodo opened this issue Mar 25, 2024 · 1 comment
Assignees
Labels
needs investigation Could be an issue - needs investigation

Comments

@rchiodo
Copy link
Contributor

rchiodo commented Mar 25, 2024

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}
@StellaHuang95
Copy link
Contributor

VS Client doesn't currently support the snippetSupport capability, but I enabled it by hardcoding pylance to the list of servers that enable experimental snippet support. Not sure why it's not working, needs further investigation.

@StellaHuang95 StellaHuang95 added needs investigation Could be an issue - needs investigation and removed needs triage labels Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Could be an issue - needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants