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

Checking "Automatically add brackets to functions" has no effect. #7958

Closed
linette-zyy opened this issue Jul 22, 2024 · 8 comments
Closed

Checking "Automatically add brackets to functions" has no effect. #7958

linette-zyy opened this issue Jul 22, 2024 · 8 comments
Assignees
Labels
bug fixed in next version A fix has been implemented an will appear in an upcoming version P2

Comments

@linette-zyy
Copy link

Environment
image

Steps to Reproduce
1.Check "Automatically add brackets for functions" (Tools/Options/Text Editor/Python/Advanced)
2.Add "import os" to python file.
3.Write "os.getc", you'll see autocomplete for os.getcwd, selecting it, ensure:

Expected behavior
Auto-complete adds os.getcwd() to the source code.

Additional context and screenshots

Only os.getcwd is added to the file.

image

@StellaHuang95
Copy link
Contributor

@linette-zyy I can't repro in Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview Version 17.12.0 Preview 1.0 [35130.250.main]. Could you verify?

@linette-zyy
Copy link
Author

I can repro in today's build. Python installed from VS.
image
Only os.getcwd is added to the file.
13

@StellaHuang95
Copy link
Contributor

Might be the pylance version that's making a difference. What's your pylance version?

@linette-zyy
Copy link
Author

I can repro in today's build. Python installed from VS.
image

@StellaHuang95
Copy link
Contributor

I can repro, this is also a regression since pylance 2024.7.104. Might have the same root cause as #7974

@StellaHuang95
Copy link
Contributor

@linette-zyy can you check if it still repros? Thanks!

@linette-zyy
Copy link
Author

I can repro in today's build. Python installed from VS.
image

@StellaHuang95 StellaHuang95 added the fixed in next version A fix has been implemented an will appear in an upcoming version label Oct 28, 2024
@StellaHuang95
Copy link
Contributor

Can't repro with Pylance 2024.10.102. It should be fixed once the latest Pylance is shipped and consumed by PTVS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed in next version A fix has been implemented an will appear in an upcoming version P2
Projects
None yet
Development

No branches or pull requests

2 participants