microsoft / PTVS

Python Tools for Visual Studio
https://aka.ms/PTVS
Apache License 2.0
2.52k stars 673 forks source link

Issue with Rename Functionality in Python Editor #7910

Open vsfeedback opened 1 month ago

vsfeedback commented 1 month ago

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


When I click on the name of a function (variable, class, etc.) in the Python editor and press F2, a Rename to: panel appears to change the name of the function to something else. Now, I want to paste a new name from the clipboard, for which I need to press Ctrl+V. However, as soon as I press the Ctrl key, the Rename to: panel disappears instantly. This prevents me from using the renaming tool. Later, I found out that this only happens when the mouse cursor is over the function name. I suspect it might be conflicting with another functionality - underlining the function name when Ctrl is pressed and the mouse is hovering over it.

P.S.: Do I really need to see a tooltip over the Rename to: panel (see the screenshot)?

2024-05-15_174356.png


Original Comments

Feedback Bot on 5/15/2024, 06:33 PM:

(private comment, text removed)


Original Solutions

(no solutions)

StellaHuang95 commented 1 month ago

I can repro this, the repro steps are:

  1. Right click on a function to open the rename panel
  2. Hover over the function until hover information shows up
  3. Hit Ctrl
  4. The panel disappears