Help with ScriptLanguageExtension to register template

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PickDough

Greetings!

We are currently developing plugin for Godot 4.0 and would like to add our custom templates for extending classes that are important for our editor tools. I’m aware of this tutorial but the real question is “is it possible to somehow use ScriptLanguageExtension that I was able to find in docs to do it programmaticlly”.

I can probably figure out how to use it despite the lack of docs for now but the real question is how to obtain an instance of this class from EditorPlugin in order to use it.