sublimetext2 - SublimeText(3) plug-in onload event? -


i'm trying develop plugin sublimetext3.

the plugin use node.js server, , want keep running single instance(service).

so, design plugin

to try tcp connect on plugin load, and

  • if connection succeeded , received data, nothing
  • if connection failed, execute node command launch new server instance

however, cannot find eventlistener plugin-onload here

https://www.sublimetext.com/docs/3/api_reference.html

what common manner achieve in sublimetext plugin??

please let me know. thanks.

you can define function named plugin_loaded, code inside executed when plugin loaded

def plugin_loaded():     # code here 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -