vscode-Python-Extended icon indicating copy to clipboard operation
vscode-Python-Extended copied to clipboard

Nonsensical snippets inserted after a dot (.) character in Python

Open Trezorro opened this issue 4 years ago • 5 comments

  • VSCode Version: 1.52.1
  • OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:

  1. Open empty folder and create a .py file
  2. Type the (.) character.

If editor.snippetSuggestions is set to anything but 'none', three bogus suggestions appear. preview expanded

Trezorro avatar Jan 19 '21 14:01 Trezorro

thank you. it has been fixed now

tushortz avatar Jan 19 '21 14:01 tushortz

Same thing happens after typing "def " for function declaration: pyex

Good snippet suggest at this point would be things like: __str__(self):, __repr__(self):, __getitem__(self, item): etc

astromancer avatar Feb 08 '21 08:02 astromancer

I recommend Pylance for these kinds of suggestions.

Op ma 8 feb. 2021 om 09:45 schreef Hannes Breytenbach < [email protected]>:

Same thing happens after typing "def " for function declaration: [image: pyex] https://user-images.githubusercontent.com/5623552/107195344-e8e49600-69f9-11eb-9bbb-1c05d35bbc8b.png

Good snippet suggest at this point would be things like: str(self):, repr(self):, getitem(self, item): etc

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tushortz/vscode-Python-Extended/issues/6#issuecomment-774978178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESTRGY4QLDVQDRTH27FVZDS56QCDANCNFSM4WI2LFPA .

Trezorro avatar Feb 10 '21 17:02 Trezorro

Hey, this still hasn't been fixed, there's been no update on the VS code marketplace. :, ., def, if, all give nonsensical non-code suggestions. Really annoying that they're always top of the list too so pressing enter always fills it in. Here's a recent stack overflow question related to this: https://stackoverflow.com/questions/68649240/windll-windows-only-creates/68686041 Also the more recent open issue is the same issue as this one.

bipsydev avatar Aug 06 '21 18:08 bipsydev

Confirming that this bug continues to occur, and that it is present on linux.

biblicabeebli avatar Oct 15 '21 20:10 biblicabeebli