Saturday, December 2, 2023
HomeRuby On RailsThe RubyMine 2023.2 Beta: Up to date AI Assistant, LSP API for...

The RubyMine 2023.2 Beta: Up to date AI Assistant, LSP API for Plugin Builders, and Extra

The RubyMine 2023.2 Early Entry Program has reached Beta! Under are a few of the new options within the upcoming launch that we haven’t but talked about. 

Please attempt it out and share your suggestions both within the feedback or by our problem tracker.

Documentation era with AI Assistant

Should you’re trying to generate documentation for a declaration utilizing a big language mannequin (LLM), merely entry the AI Actions menu and select the Write documentation motion. By deciding on this selection, the IDE will generate the static portion of the remark, whereas the AI will deal with producing the precise documentation textual content in your behalf. This characteristic saves you effort and time by leveraging the ability of AI to automate the documentation era course of.

LSP help for plugin builders

On this construct, we’re introducing a big characteristic: the LSP API for plugin builders. IntelliJ-based IDEs are famend for his or her intensive comprehension of supply code and their help for quite a few programming languages and frameworks. Nonetheless, there could also be sure languages and applied sciences that aren’t but natively supported. That is the place the LSP API is available in.

The LSP API primarily targets plugin builders who want to leverage a selected Language Server Protocol (LSP) server for enhanced coding help throughout the IDE. When you’ve got developed your personal programming language or framework, now you can guarantee it’s supported within the IDE by creating an LSP server and a corresponding plugin.

Presently, the LSP help encompasses functionalities corresponding to error and warning highlighting, quick-fixes, code completion, and navigation to declarations. We’ve plans to introduce extra options within the close to future.

A minimal, fully-functional plugin requires writing a number of traces of code. The plugin implements the com.intellij.platform.lsp.api.LspServerSupportProvider interface and solutions which recordsdata it’s going to help and learn how to begin the server. Prisma ORM is an open-source plugin by JetBrains and can be utilized as a reference implementation. The codebase is kind of giant, however there are just a few courses which might be associated to LSP-based help: see the org.intellij.prisma.ide.lsp.* package deal.

With the LSP API, we purpose to offer a versatile and extensible platform that empowers plugin builders to reinforce the IDE’s language help and ship a seamless coding expertise for varied languages and applied sciences.

Code perception for RBS class and module aliases

RubyMine now supplies code perception and navigation options, corresponding to resolve, completion, discover usages, rename, and extra, in addition to kind inference for sophistication and module aliases. Inspections corresponding to Duplicate declarations or Conflicting kind variable variance now help class and module aliases, and new inspections for detecting cyclic or inconsistent alias declarations have been added.

Present and inject help in Vue

RubyMine 2023.2 contains help for present and inject. The present/inject mechanism solves the difficulty of prop drilling in Vue. A mother or father part can register a supplier, after which any part within the descendent tree can inject dependencies offered by the elements. RubyMine now supplies completion for the inject subject, resolves the injected property, and shows appropriate details about the kind of the injected property. 

The complete listing of enhancements on this model is accessible within the launch notes.

To be taught concerning the newest options as they arrive out, comply with RubyMine on Twitter. We publish product information and suggestions a number of instances per week.

We’d love to listen to extra about your expertise with RubyMine. Schedule a 40–60 minute name with us to debate it and get solutions to any questions you may need!

We encourage you to share your ideas within the feedback beneath and to recommend and vote for brand new options within the problem tracker.

Completely happy growing!

The RubyMine staff



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments