Skip to content

v0.9.1

Choose a tag to compare

@dpep dpep released this 10 Oct 06:41
· 147 commits to main since this release
d00dfb1
  • A constant assigned in class << self is the singleton class's.
    --refs, --def, --dead, hover and Go to Definition took it for the
    class's own, so Widget::LIMIT and an instance method's LIMIT were
    listed as its references, though Ruby raises NameError on both. It is now
    found only from inside that body, by position or by Ruby's own spelling
    of its whole name, --refs Widget::singleton_class::LIMIT
    (--refs Widget::LIMIT misses, and says the name it has); --dead and
    workspace symbol search name its owner Widget::singleton_class. A class
    opened in that body is named the same way, and so are its methods:
    --refs 'Widget::singleton_class::Job#perform'. A class << self method
    no longer resolves a constant of the class's superclass or includes,
    which Ruby does not find there either.

  • This changes what an index records (store v65): trekr reindexes once after
    upgrading.

  • A file opened behind a slow git is indexed once git answers. In
    the editor, a new file whose git ls-files took over 1 s was left out
    of the index for the session, and each open or save held every request
    for that second. git is now asked off the request loop and waited for at
    most 400 ms, once for files opened together, and the file lands when it
    answers; a git that has not answered in 10 s is stopped and
    the next save asks again. An ignored file is still never written.