This extension allows you to create/edit RBS file.
- Jump to RBS file for the current file
- Create a new RBS file on jumping if not found
- Copy RBS definition from prototype RBS file on creating a new RBS file
- Run
rbs-inlinecommand on a .rb file saved - Run rbs_rails LSP server to generate types for Rails apply on demand (experimental)
This extension contributes the following settings:
rbs-helper.signature-directory: The name of the signature directoryrbs-helper.signature-prototype-directory: The name of the signature prototype directoryrbs-helper.copy-signature-prototype-on-create: Copy the signature prototype file on creating a new RBS filerbs-helper.strip-lib-directory: Striplib/directory from the filename of signature. Useful for gem developmentrbs-helper.rbs-inline-on-save: Runrbs-inlinecommand on a .rb file savedrbs-helper.rbs-inline-command: Command-line forrbs-inlinecommandrbs-helper.rbs-inline-options: Options forrbs-inlinecommand (excluding --output option)rbs-helper.rbs-inline-exclude-paths: Exclude paths for rbs-inline (Comma separated, globbing not supported)rbs-helper.rbs-inline-signature-directory: The name of the signature directory for rbs-inlinerbs-helper.rbs-rails-lsp-enabled: Enable rbs_rails LSP serverrbs-helper.rbs-rails-lsp-command: Command-line to invoke rbs_rails LSP server
- Support rbs_rails LSP Server to generate types for Rails apply on demand (experimental)
- Remove
--outputoption from the default value ofrbs-inline-options
- Add a new configuration:
rbs-inline-exclude-pathsto exclude paths for rbs-inline - Add a new configuration:
rbs-inline-signature-directoryto specify the signature directory for rbs-inline--outputoption is no longer needed inrbs-inline-options
- Delete RBS files correspond to the deleted files on Ruby files deleted
- Rename RBS files correspond to the renamed files on Ruby files renamed
- Set default setting
--opt-out --outputtorbs-helper.rbs-inline-options
- Run
rbs-inlinecommand on a .rb file saved if enabled.
- Add a new configuration:
strip-lib-directoryto support gem development. It stripslib/directory on searching the signature file. (ex.lib/foo.rb->sig/handwritten/foo.rbs)
Initial release of rbs-helper
