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

Default value should NOT be suggested when entering list. #7773

Closed
cplager opened this issue Oct 1, 2021 · 5 comments
Closed

Default value should NOT be suggested when entering list. #7773

cplager opened this issue Oct 1, 2021 · 5 comments
Labels
bug Issue identified by VS Code Team member as probable bug notebook-intellisense Intellisense & other language features in notebook cells for any language

Comments

@cplager
Copy link

cplager commented Oct 1, 2021

Environment data

  • VS Code version: 1.60.2
  • Jupyter Extension version (available under the Extensions sidebar): v2021.8.2041215044
  • Python Extension version (available under the Extensions sidebar): v2021.9.1246542782
  • OS (Windows | Mac | Linux distro) and version: Windows 10 v1909
  • Python and/or Anaconda version: 3.8.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Conda
  • Jupyter server running: Local

Expected behaviour

No default value should be suggested when adding elements to a list.

Actual behaviour

Keeps suggesting default values (%debug) which gets added when I hit return when creating multi-line list. This does not happen when editing python files.

Steps to reproduce:

  • Create multi-line array
  • type comma (%debug and other choices show up)
  • hit return (%debug chosen)

image

@cplager cplager added the bug Issue identified by VS Code Team member as probable bug label Oct 1, 2021
@cplager cplager changed the title %debug default value should NOT be suggested when entering multiline list. %debug default value should NOT be suggested when entering list. Oct 1, 2021
@cplager cplager changed the title %debug default value should NOT be suggested when entering list. Default value should NOT be suggested when entering list. Oct 1, 2021
@claudiaregio
Copy link
Contributor

@cplager Could you please provide a screen recording of what you are seeing?

@claudiaregio claudiaregio added the info-needed Issue requires more information from poster label Oct 1, 2021
@cplager
Copy link
Author

cplager commented Oct 4, 2021

There should not be defaults popping up when creating lists and dictionaries. Because of these defaults, if I just hit enter, it adds the "bad default" to what I'm typing.

Jupyter
badDefaults

This doesn't happen in the regular python mode.

Regular Python
goodDefaults

@rchiodo
Copy link
Contributor

rchiodo commented Oct 4, 2021

This looks like the jupyter intellisense is trumping the pylance intellisense.

@rchiodo rchiodo added notebook-intellisense Intellisense & other language features in notebook cells for any language and removed info-needed Issue requires more information from poster needs-triage labels Oct 4, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Oct 13, 2021

Closing as dupe of #7772

@rchiodo
Copy link
Contributor

rchiodo commented Nov 11, 2021

Actually this is more a dupe of #7880, where typing a ',' should NOT trigger auto completion.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-intellisense Intellisense & other language features in notebook cells for any language
Projects
None yet
Development

No branches or pull requests

3 participants