SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

Accepting a suggestion in the editor removes everything in front of the cursor

Open inosik opened this issue 1 year ago • 8 comments

Accepting a suggestion removes everything in front of the cursor:

https://github.com/user-attachments/assets/78ebd74d-d659-443d-851f-548ffa0eadab

This happens on Tab and typing . or ( when a suggested item is already typed. I'm using Firefox on Windows but my colleague who uses Chrome can reproduce that too.

inosik avatar Nov 20 '24 10:11 inosik

Same on a third machine (macOS + Safari).

inosik avatar Nov 20 '24 19:11 inosik

This bug does not occur when anything other than default is selected.(Edit: Currently, in 12/10, this workaround is available for selections other than default, x64.)

スクリーンショット 2024-11-25 084152

akeit0 avatar Nov 24 '24 23:11 akeit0

Seems to affect C# only. Does not happen with F# or VB.

inosik avatar Nov 25 '24 14:11 inosik

Thanks for reporting -- can you try again and see if this is still happening?

I was able to reproduce it, but for some reason it was only happening in one environment (stable). I did a redeployment and this issue is no longer happening in my testing. However since I wasn't able to reproduce in other environments, and redeployed with no changes, I am not confident that the root cause is resolved.

ashmind avatar Dec 13 '24 20:12 ashmind

It is still reproduced in default, and x64.

akeit0 avatar Dec 16 '24 02:12 akeit0

Confirmed still happening today

nickdaria avatar Dec 17 '24 07:12 nickdaria

Can also confirm it's still a problem in default and x64. It's also happens in the preview editor with all platforms.

Using latest Chrome in Windows 10.

redawgts avatar Dec 17 '24 17:12 redawgts

Duplicate of #1316?

vladd avatar Dec 20 '24 12:12 vladd