You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add RDoc.safe_mtime(file) module method that wraps File.mtime with an
explicit rescue SystemCallError. Previously, five call sites used
`File.mtime(file) rescue nil`, which silently swallows every
StandardError. The narrower rescue lets unrelated bugs surface.
* Use the helper at the five sites that needed the same pattern:
rdoc.rb's rbs_signature_mtimes, and four spots in server.rb
(file_mtimes_for, the change-detection loop, the post-parse mtime
record, and the rbs reload block).
* Anchor the remove_unparseable file extension regex with \z instead
of $ so the match only succeeds at end-of-string. Same change for
the tags regex on the next line.
* Use the existing rbs_signature_file? predicate in two more spots
instead of re-inlining File.extname(file) == '.rbs'.
* Move @type_name_lookup invalidation out of Store#complete and into
an explicit Store#invalidate_type_name_lookup call in the server's
reparse_and_refresh — only the server's class-set churn actually
needs it. complete itself shouldn't carry the responsibility.
* Fold extract_type_signature! into parse_comment_text_to_directives
so a comment is parsed in one place. consecutive_comment now just
returns whatever the parse function gives it.
0 commit comments