Improvement CodeRefactor

- Truncate Imports for haxe
- fixed behavior for one unused import.

Then I think we should add Debug.Assert

On Thu, Oct 23, 2014 at 12:26 PM, SlavaRa <notifications@github.com> wrote:

> In External/Plugins/CodeRefactor/Commands/OrganizeImports.cs:
>
> > @@ -150,39 +140,34 @@ private Int32 GetLineIndentFor(MemberModel import)
> >          private void InsertImports(List<MemberModel> imports, String searchInText, ScintillaControl sci, Int32 indent)
> >          {
> >              String eol = LineEndDetector.GetNewLineMarker(sci.EOLMode);
> > -            if (imports.Count > 1 || (imports.Count > 0 && this.TruncateImports))
> > +            Int32 line = imports[0].LineFrom - DeletedImportsCompensation;
>
> verified before calling
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/fdorg/flashdevelop/pull/458/files#r19261163>.
>