Plans for IntelliJ plugin support?

I was using ReScript language server until ReScript plugin for vscode officially came out. But having been a user of intellij for long, I still think it is a good idea to have a plugin for intellij as well. (Haskell, Clojure, and ReasonML have supports for their own!) Any future plans? Will be happy to know if anything is under progress :slight_smile:

Maybe @hgiraud could adjust the existing one (https://plugins.jetbrains.com/plugin/9440-reasonml) with a good effort to reward ratio. I only followed it in the beginning, so I merely know it’s a custom solution based on the compiled artifacts. Unfortunately I’m not sure how much work that would be :man_shrugging:t3:

I expect Herve’s plugin to be a lot of work to maintain, since he’s chosen not to use the Reason language server, opting instead for a tighter integration with IntelliJ internals. But so far he’s been doing a pretty great job, I think.

Idea plugin support remains unchanged: it is to support ocaml, reason and rescript syntaxes.

Right now, in the latest release, you already have syntax highlighting - although not perfect since the parser is a duplicate of the reasonML one.

I refactored and simplified parsers in the main branch (Not published until plugin is made compatible with 2020.2 version). Since ReasonML and Rescript share the same AST of PsiElements, they will have the same functionalities.

5 Likes

Hi, version 0.92 is published: it’s compatible with 2020.2 IDE, and you get support for .res files with the same functionalities (completion, find usages, …) than with .re files - and same flaws.

7 Likes

I’m looking to swap from vscode to webstorm for my TypeScript projects, so this is about to be important to me too.

Earlier this year jetbrains made it easier for plugin developers to support LSP:

Does this make the plugin easier to write? Or is it so different it would be a new plugin?

2 Likes

The current plugin will continue it’s life.
Lsp will require a new plugin to be developed

2 Likes