Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#35 [Editor] organize imports

open
nobody
Idea (20)
7
2008-04-05
2007-10-07
Leif Frenzel
No

In an editor, the user should have an action to organize imports in the source file, in particular:

- remove unused imports
- group imports
- replace imports with long import lists with an import for the entire module (this option must be configurable by the user)
- if there are unresolved identifiers, automatically generate import statements if there is only one possibility in the workspace, otherwise present the user with an option list

Discussion

  • Leif Frenzel
    Leif Frenzel
    2007-10-19

    Logged In: YES
    user_id=873711
    Originator: YES

    possibly helpful GHC flag: -ddump-minimal-imports

     
  • Leif Frenzel
    Leif Frenzel
    2007-10-19

    • milestone: --> 770141
     
  • Leif Frenzel
    Leif Frenzel
    2007-11-18

    • priority: 5 --> 7
     
  • Leif Frenzel
    Leif Frenzel
    2008-03-21

    • milestone: 770141 --> 781048
     
  • Leif Frenzel
    Leif Frenzel
    2008-03-24

    • milestone: 781048 -->
     
  • Leif Frenzel
    Leif Frenzel
    2008-03-24

    Logged In: YES
    user_id=873711
    Originator: YES

    Moving back to backlog. We'll probably tackle this at the Hackathon, but there will be some more builds in between.

     
  • Leif Frenzel
    Leif Frenzel
    2008-03-30

    • milestone: --> 781050
     
  • Leif Frenzel
    Leif Frenzel
    2008-04-05

    • milestone: 781050 -->
     
  • Leif Frenzel
    Leif Frenzel
    2008-04-05

    Logged In: YES
    user_id=873711
    Originator: YES

    Implemented the skeleton for this (declarations in plugin.xml, editor context menu, skeleton Haskell source).

    Deferring to one of the next milestones, since this is a nice task for the Hackathon.