Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3920

Clean up the code lookup menu

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.6.1.RELEASE
    • None
    • GRAILS
    • None

    Description

      Whenever you lookup method calls on domain objects, the popup displays a lot of injected class members that are irrelevant to the task at hand. Moreover, you get method recommendations that aren't for the class that you're using.

      Here's a simple example:
      List<Article> articleList = new ArrayList<>();
      articleList.each {Article article ->
      article.
      }

      If you attempt to lookup the methods for article you get methods for articleList (or a list in general). You also get code snippet recommendations for After, ase, Before, for_in, etc. Since I'm editing a service class and not a unit test, I shouldn't be seeing proposals for irrelevant things. Please just display the methods for particular class that I'm interrogating. Bold the methods that are for the class, and sort them to the top of the menu. All other methods (for super classes, and injected methods should be rendered in plain text.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mfortner Mark Fortner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: