Hi all,
I’m making a plugin for code analysis, and one of the features is to start the analysis of the project as soon as that project is loaded in sublime. is there any way to detect this.
Hi all,
I’m making a plugin for code analysis, and one of the features is to start the analysis of the project as soon as that project is loaded in sublime. is there any way to detect this.
as of ST 4050, there are on_load_project(window)
and on_load_project_async(window)
event listeners.
@jfcherng
Oh great, I didn’t know about that, that is not in docs https://www.sublimetext.com/docs/3/api_reference.html
So that is a part of EventListener
right?
Sorry, I should probably have start with that. this is a Sublime Text 3 plugin.
Is there a way to do this in ST3?
I am not aware of any (direct way) and I guess that’s the point why it’s introduced in ST 4.
I guess you just have to get the folders
information of the current project settings when ST plugin_load()
and then do what you want to do in Python. You don’t really need to wait for the project to be fully loaded?
I believe LSP just reacts to on_load_async
and on_activated_async
view listeners. Not specifically to project being opened.