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 :)
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 :)