Skip to content

v0.5.1

Compare
Choose a tag to compare
@I3oris I3oris released this 12 Sep 16:51
· 38 commits to master since this release

0.5.1 (Mon Sep 12 2022)

New

  • The auto-completion behavior is improved:
    • Now entries are narrowed as the user types.
    • Matching part of the name are now displayed in bright.
  • Auto-completion is available on inner of def (Experimental)
    • It takes account of parameter types:
    def foo(a, b : String, c = 0, *args, **options)
      a.| # => Any
      b.| # => String
      c.| # => Int32
      args.| # => Tuple(Any)
      options. | # => NamedTuple()
    • It takes account of scope.
    • A new fictitious type Any is introduced, bypassing the semantics check on Call. (foo(<Any>).bar.baz # => Any)
    • The following is not yet supported:
      • Block parameter
      • Instance var parameter
      • Free vars
      • Class def
      • Def in generic type.
  • Auto-completion now works inside a Array.
  • Update to the last crystal version (1.5.1).

Bugs fix

  • Fix bad unindent on include (unindent still work for in).
  • Fix broken auto-completion after .class.
  • Fix broken auto-completion after a suffix if.

Internal

  • Fix wrong CRYSTAL_PATH in Makefile (preventing to add lib dependency).
  • Remove some ameba excludes.