4 ms·
Nice! Does the Steep LSP for VS Code give you nice intellisense even if you don't have rbs files? How's the speed?
by rattray 3y ago
Nice! Does the Steep LSP for VS Code give you nice intellisense even if you don't have rbs files? How's the speed?
- rattray 3y agoFor context, the reason I ask is that I am developing some Ruby gems, and considering whether it's worth adding .rbs files. In the Python libraries I maintain, types are useful to anyone who installs the default Python VS Code plugin, because it gives them intellisense (but doesn't give them red squiggly lines for type errors) even if they do nothing to set up types or a typechecker. Is that or will that be the case for Ruby/Steep?
- lloeki 3y agoYes! Totally one of the use cases. We plan to do that at some point for the Ruby Datadog tracer public API, so that users can have intellisense and don't need to jump to the docs.
- lloeki 3y agoIf you want good results with intellisense/omnicomplete you need sigs. Steep does some type synthesis but giben Runy's very dynamic nature it's going to be hit and miss, so that's mostly for progressive typing. It really aims at leveraging static information. The process is basically `rbs prototype` or `typeprof` to generate a sig file and steep then uses that. TBH it's not that much of a chore as it sounds and already gives you good-ish results. That gives you a bunch of material to work from and progressively refine types. Speed is very good, I didn't notice anything slow.