Completion refactoring & improvements [v0.5.1.2]

Hi everyone,

As I recently tried to test (=mess around with) some advanced D templating techniques I found several issues regarding the completion..and fixed plenty of ‘em:

  • When getting unfiltered method overloads, it somehow handled rather the method’s base type than the actual method.. fixed that.
  • Do not show ufcs items for void’s
  • Implemented smarter handling of type tuples.
  • Reworked parameter-argument test for method symbol resolution which is used for parameter insight
  • Reworked node scan + created tests for it. Scans will perform faster & more consistent now.
  • On UFCS completion, the first argument will be skipped in the param insight
  • Disabled display of initializers in completion lists & restricted node string length to 40 chars.
  • Fixed nested comment highlighting.
  • Improved ufcs caching & displaying performance. Removed possible source of mem leaks by using WeakReferences.

I also found an issue with an infinite loop that might occur somewhere..I recently wasn’t able to reproduce this issue, so in the case you find a consistent trigger for >=100% CPU usage, please tell me and I try to fix it asap!

So far,
Cheers!

3 Comments

  • Nathan M. Swan
    February 26, 2013 - 10:01 am | Permalink

    It’s happening with typing out foreach blocks.

    • alex
      February 26, 2013 - 5:08 pm | Permalink

      Interesting.

    • alex
      February 26, 2013 - 5:21 pm | Permalink

      Fixed it. Was a small regression from a previous fix.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *


    5 × = five

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>