Skip to content

Writing a comma in a string that is an argument to a function causes the pop up box to display #2057

@jakegt1

Description

@jakegt1

When writing arguments to functions, the python module shows a pop up box showing the next argument and its documentation, which can be removed by clicking away among other things. However, if you're writing a string as an argument, if you ever write a comma it will cause the popup box to re-fire.

Environment data

  • VS Code version: 1.24.1
  • Extension version (available under the Extensions sidebar): 2018.6.0
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.5.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Pop up box for functions shows when a comma is written inside of a string, not just outside of a string

Expected behavior

Pop up box should not fire if the comma is inside a string

Steps to reproduce:

Write code that would execute a function, add a string as an argument, click to remove the pop up box, write a comma in the string which will show the pop up box.

str("This is my string,")   # Comma causes the box to pop up

Metadata

Metadata

Assignees

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions