PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

Intellicode deletes everything in line before keyword

Open vsfeedback opened this issue 3 years ago • 1 comments

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice] Intellicode deletes everything in line before keyword if i choose keyword through suggestions for example this code.

numbers = input("Enter values") print(numbers)

If i start typing "print(numb" and then use ctrl+space to choose "numbers" my code will start to look like this

numbers = input("Enter values") numbers

everything before keyword "numbers" will be deleted. I dont understand why. VSCode has no problem like that.

It also bothers me that Suggestions appear not always, and sometimes flash into being for a second and then disappear, until i type some more.

Am i doing something wrong? It really worked quite fine in VSC, its first time i see Intellisense glitch like that.


Original Comments

Feedback Bot on 2/6/2022, 08:06 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Stroichik ™ on 2/7/2022, 04:47 PM:

It is also doesn’t see my variable “list” in this code example

image.png


Original Solutions

(no solutions)

vsfeedback avatar Feb 16 '22 17:02 vsfeedback

Related to https://github.com/microsoft/PTVS/issues/6885 as well as a few other bugs we have open. Not sure if these are literally duplicates, but they are very similar. The parser doesn't recognize what token to replace and does the wrong thing. Definitely needs investigation and fixing.

AdamYoblick avatar Feb 16 '22 23:02 AdamYoblick

Have to follow up with the LSP / VS Editor team about this, I know they have a bug that tracks it.

AdamYoblick avatar Feb 02 '23 22:02 AdamYoblick

I've verified that this doesn't repro anymore. Shall we close it? @AdamYoblick intellicode

StellaHuang95 avatar Feb 28 '23 01:02 StellaHuang95