Skip to content

Conversation

@apiology
Copy link
Owner

@apiology apiology commented Jun 24, 2025

apiology and others added 30 commits April 13, 2025 12:29
Useful for debug-level logging being turned on selectively at dev time
* Populate location information from RBS files

The 'rbs' gem maps the location of different definitions to the
relevant point in the RGS files themselves - this change provides the
ability to jump into the right place in those files to see the type
definition via the LSP.

* Prefer source location in language server

* Resolve merge issue

* Fix Path vs String type error
* Consolidate parameter handling into Pin::Closure

* Clarify clobbered variable names

* Fix bug in to_rbs, add spec, then fix new bug found after running spec

* Catch one more Signature.new to translate from strict typechecking

* Introduce Pin::Callable

* Introduce Pin::Callable

* Introduce Pin::Callable

* Introduce Pin::Callable

* Introduce Pin::Callable

* Introduce Pin::Callable

* Introduce Pin::Callable

* Use Pin::Callable type in args_node.rb

* Select String#each_line overload with mandatory vs optional arg info
…astwide#864)

* Adjust local variable presence to start after assignment, not before

* Add regression test around assignment in return position

* Fix assignment visibility code, which relied on bad asgn semantics
* Resolve params from ref tags

* Resolve ref tags with namespaces
apiology added 26 commits June 24, 2025 19:16
This seems to be the most clear mapping - viewing these three names as
all meaning 'I am making no promises on what type this can be'.

https://github.com/ruby/rbs/blob/master/docs/syntax.md#base-types

'untyped' is used in RBS as the initial type inserted for all
arguments and return values when stubs are generated

Also:
* Refactor RbsMap::Conversions into a standalone class for testing
  purposes
@apiology
Copy link
Owner Author

No regressions found in the solargraph-rails specs: iftheshoefritz/solargraph-rails#135

apiology added 3 commits June 29, 2025 12:05
* [regression] Only log when we are actually doing work caching pins
* [regression] Fix misspelled mutex-y variable name in gem caching -
  probably fixes castwide#976
* [regression] Speed up 'solargraph gems' caching by only loading api_map once,
  avoiding extra loading of files from disk
* [regression] Use existing pattern to keep only one cache of combined
  pins in memory, instead of one per DocMap (~0.25s speed-up in
  solargraph project per docmap on my computer, ymmv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants