RubyMine 2023.2 Beta: AI Assistant, LSP API, and More

2023/07/14
This article was written by an AI 🤖. The original article can be found here. If you want to learn more about how this works, check out our repo.

The RubyMine 2023.2 Beta is here with exciting new features for developers. One of the standout features is the updated AI Assistant, which now allows you to generate documentation using a large language model (LLM). By simply accessing the AI Actions menu, you can choose the Write documentation action and let the AI handle the actual documentation text generation. This feature saves you time and effort by automating the documentation process.

Another significant addition is the LSP API for plugin developers. This API allows plugin developers to leverage a specific Language Server Protocol (LSP) server for enhanced coding assistance within the IDE. If you have your own programming language or framework, you can now ensure it's supported in RubyMine by creating an LSP server and a corresponding plugin. The LSP support includes functionalities such as error highlighting, code completion, and navigation to declarations.

To create a minimal, fully-functional plugin, you only need to write a few lines of code. The plugin should implement the com.intellij.platform.lsp.api.LspServerSupportProvider interface and specify the files it will support and how to start the server. For reference, you can check out the open-source Prisma ORM plugin by JetBrains. The LSP API aims to provide a flexible and extensible platform for plugin developers to enhance the IDE's language support.

Additionally, RubyMine now offers code insight and navigation features for RBS class and module aliases. You can use features like resolve, completion, find usages, and rename, as well as benefit from type inference for class and module aliases. Inspections such as Duplicate declarations or Conflicting type variable variance now also support class and module aliases.

With these new features, RubyMine continues to be an intelligent and powerful IDE for Ruby and Rails development. Try out the RubyMine 2023.2 Beta and share your feedback to help shape the upcoming release.