vscode-python: Function documentation does not show with python.autoComplete.addBrackets and IntelliSense

Hello! 👋

There’s a slight problem with python.autoComplete.addBrackets. I couldn’t find a ticket for this, so I decided to write my own. I’m not sure whether this issue belongs here, or whether this problem has something to do with VSCode.

Environment data

  • VS Code version: 1.23.1
  • Extension version: 2018.4.0
  • OS and version: macOS Sierra 10.12.6
  • Python version: Python 3.6.5
  • Type of virtual environment used: N/A

Actual behavior

When the configuration option python.autoComplete.addBrackets is set to true, you do not get automatic VSCode hinting when your cursor enters the brackets.

actual

Expected behavior

Auto-hinting should kick off just the same when utilizing automatic bracket insertion. There is no real reason for it behaving the way that it does right now. Below is a picture of how the auto-hinting engine kicks off when you enter brackets manually.

expected

Steps to reproduce:

  1. Set python.autoComplete.addBrackets to true.
  2. Open up a Python file, and make sure that your Python environment is working correctly.
  3. Type a function name and hit TAB or Enter to auto-complete it.
  4. Brackets are inserted, but no auto-hinting.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Really annoying bug but I just found a “workaround” that for me at least makes the auto bracket feature useful again. If you insert a comma between the brackets you will trigger the documentation popup and then it works as usual again.

+1 I’d better subscribe for the thread, as this bug bothers me 😃

@prasiyer not at the moment. If you feel up for trying to diagnose the issue and come up with a PR we will happily take a look at it.