ianhattendorf / autocomplete-ruby

Provides intelligent code completion for Ruby in the Atom editor. Requires RSense.
MIT License
51 stars 9 forks source link

Improve Rsense process managment for Unix systems #11

Closed Mexxerio closed 7 years ago

Mexxerio commented 7 years ago

This improves the starting and stopping for the Rsense process for Unix based systems.

When atom starts it checks if an rsense process is already running. If yes, then do nothing, otherwise start the rsense server.

Once you close the atom window it first checks how many atom windows are open. If there are more than one then do nothing, because we still want to use Rsense in the other window. If there's only one window open then kill the rsense server. (No problems anymore with rsense processes without a pidfile)

I could only implement this for Unix. If the user is using windows it falls back on the old starting/stopping mechanism. If someone wants to do it for windows, be my guest :)