Can I make RPC calls to IntelliJ

Answered

I do not know if I have to write a plugin or not, but what I want to do is call IntelliJ menu functions or macros from another process. For example Save All (CTRL-S) from another process. 

Does IntelliJ expose a Rest Service that can be used for this or do I have to write a plugin which will run a web server, take instructions and then execute those functions on IntelliJ ?

Thanks

Jay

 

6 comments
Comment actions Permalink

You'll need a plug-in. https://github.com/zolotov/RemoteCall could be a starting point.

0
Comment actions Permalink

Thanks..but on that page they talk about "HTTP requests in using built-in IntelliJ Rest API." So does InterlliJ has some kind of built in REST endpoint ?

 

Jay

0
Comment actions Permalink

Yes, it does. You can open files, projects, do diff and that's all. You can't call menu actions, use code templates, etc.

0
Comment actions Permalink

Is this documented some where ? http://develar.org/idea-rest-api/#api-Platform-file is what i found but it does not look like its from JB 

 

Thanks Serge

 

Jay

0
Comment actions Permalink

It's the doc generated with https://github.com/JetBrains/intellij-community/blob/master/build/restApiDocGenerator/gulpfile.js.

See also https://github.com/develar/develar.github.io/tree/master/idea-rest-api.

@develar is Vladimir Krivosheev from JetBrains team, so you can consider it the official documentation.

0
Comment actions Permalink

Thank you Serge. 

0

Please sign in to leave a comment.