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

Auto-add parenthesis to callable completions #37

Closed
imba-tjd opened this issue Jul 3, 2020 · 8 comments
Closed

Auto-add parenthesis to callable completions #37

imba-tjd opened this issue Jul 3, 2020 · 8 comments
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@imba-tjd
Copy link

imba-tjd commented Jul 3, 2020

"python.autoComplete.addBrackets": true
@imba-tjd imba-tjd added the enhancement New feature or request label Jul 3, 2020
@matinmoezzi
Copy link

I have the same problem.

@jakebailey
Copy link
Member

For what it's worth, the expected behavior at the moment is for this to not work; anything under python.autoComplete has either moved to python.analysis (e.g., python.analysis.extraPaths), or hasn't been implemented. The list of currently supported options are in this repo's README.

@eaglet123
Copy link

This happens when "python.languageServer" is set to anything other than Jedi.

People also encountered this problem here: microsoft/vscode-python#12786

@jakebailey jakebailey changed the title autoComplete.addBrackets won't work Auto-add parenthesis to callable completions Aug 10, 2020
@jakebailey
Copy link
Member

To give an update, this has been spec'd out (under a more descriptive name than "brackets"), but isn't yet implemented.

@jakebailey
Copy link
Member

This issue has been fixed in version 2020.8.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202082-20-august-2020

You can enable this by setting:

{
    "python.analysis.completeFunctionParens": true
}

If you were already using python.autoComplete.addBrackets, your setting should be automatically ported. (We took this opportunity to name this more descriptively than the old addBrackets setting.)

@IncognitoGK9
Copy link

For my case, using VS code for Flutter/Dart, I resolved this error by disabling the Preview LSP (Language Server preview) which I had earlier enabled to remedy another VS Code error - Data analyser stopped working.

@nonoash
Copy link

nonoash commented Jan 19, 2023

referring to this issue, has it been fixed ? because it's not working for me with Pylance, thanks. #180 (comment)

@rchiodo
Copy link
Contributor

rchiodo commented Jan 19, 2023

See #3831. Should be fixed in the prerelease bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

7 participants