Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.4
-
None
-
None
-
Product Version: Apache NetBeans IDE 12.4
Java: 14; OpenJDK 64-Bit Server VM 14+36-1461
Runtime: OpenJDK Runtime Environment 14+36-1461
System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.4
Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.4Product Version: Apache NetBeans IDE 12.4 Java: 14; OpenJDK 64-Bit Server VM 14+36-1461 Runtime: OpenJDK Runtime Environment 14+36-1461 System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) User directory: C:\Users\Chris\AppData\Roaming\Netbeans\12.4 Cache directory: C:\Users\Chris\AppData\Local\NetBeans\Cache\12.4
Description
When I create a typescript file which is empty, I can call the rename dialog while hitting ctrl + r everytime. The file doesn't need to be empty, I can call it on every column and if the context is not correct, the rename dialog is empty.
Steps to reproduce:
- Open a clean instance of NetBeans 12.4
- Create an HTML5 project
- Right click on the Project -> New -> Other -> Other -> Empty file
- Call it foo.ts
- Empty TS File opens
- Hit ctrl + r
- Empty rename dialog opens
What was expected
In other filetypes when the context is not correct, when I try to hit the rename action for example on a new line which is empty, it says: You can't call this dialog in this context.
So I expect this for the whole empty TS file too. It should only open the rename dialog, if the context is correct which could be variables, function names, classes, interfaces, etc.