Writing a comma in a string that is an argument to a function causes the pop up box to display
See original GitHub issueWhen 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Trailing commas - JavaScript - MDN Web Docs
JavaScript allows trailing commas wherever a comma-separated list of values is accepted and more values may be expected after the last item.
Read more >Unit 1, Section 1, Activity 7 - Deepnote
Gather, store and use string input(); Format print() output ... By comma-separating strings, print() will output each separated by a space ...
Read more >String Functions - Tableau Help
This article introduces string functions and their uses in Tableau. It also demonstrates how to create a string calculation using an example.
Read more >Popup Windows Made Easy: Here's The JavaScript Code To ...
The third argument is a string containing a comma separated list of properties of the window. These properties are explained in more detail...
Read more >Functions - The Modern JavaScript Tutorial
For example, we need to show a nice-looking message when a ... When a value is passed as a function parameter, it's also...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is a result of a “hover” request
Looks like we need to investigate here: https://github.com/Microsoft/vscode-python/blob/b769f5567c71ce684885ee4ffa5cecdae34202b6/src/client/providers/providerUtilities.ts#L13