Open Griffork opened 3 years ago
I'll wait on @minestarks to verify whether this has already been fixed. If so, I believe you can expect a fix in an upcoming update of Visual Studio 2019.
Not sure if related but now renames are causing the names to be doubled up, so:
Renaming getTopLevelElement in the following code:
export abstract class UIComponent {
abstract visible: KnockoutObservable<boolean>;
abstract getTopLevelElement(): HTMLElement;
}
to:
export abstract class UIComponent {
abstract visible: KnockoutObservable<boolean>;
abstract getRootElement(): HTMLElement;
}
becomes:
export abstract class UIComponent {
abstract visible: KnockoutObservable<boolean>;
abstract getRootElementgetRootElement(): HTMLElement;
}
Hi @Griffork! I'm not able to repro either issue in either Visual Studio 2019 version 16.10.1 or version 16.11 Preview 1, in both cases with TypeScript version 3.9.7.
Could you please confirm that you're still able to observe the issues in one of these versions? Are you still using TS 3.9.7?
If so, could you please report this using the "Report A Problem" functionality in Visual Studio? By doing so and using the "Record your actions" functionality, that will provide us with logs to help us further investigate the issue.
Thank you!
I can confirm that I am still getting the problem. If I restart a bunch occasionally it won't happen and if it doesn't happen it's good for the entire session (and then the problem reappears when I restart after that).
I'm using 16.10.1 and Typescript version 4.2.
I've done a recording and submitted it. I'll have a link to it soon and post it here.
Bug Report
π Search Terms
InlineRename, can't rename.
π Version & Regression Information
Visual Studio Version: 16.8.3 TypeScript Tools: 16.0.21016.2001 TypeScript Version (installed in npm): 3.9.7 Project type GUIDs: {3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{349c5851-65df-11da-9384-00065b846f21};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}
I noticed this bug when I created a new project in VS2019. It doesn't appear to happen in my old project.
π» The problem:
Trying to rename any class, interface or variable that is exported from one file and used in any other file works (in that you can type out the new name) but fails to apply. An error shows at the top of the window and the edited property reverts to it's original name with an extra newline inserted where the cursor was.
e.g.
When I try to use rename to edit it to be:
It instead becomes:
And the following error occurs in the log: