Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5856

Rename dialog comes up everywhere in a TS file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.4
    • None
    • editor - Refactoring
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chrizzly Christian Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: