Would be really useful, even for people who usually use external editors as you need instant feedback when editing and there's currently no support for gdshader in the official LSP.
The actual logic seems pretty straight forward as it uses the exact same editor component, although I'm not sure how or if it's even possible to access it since it's an editor plugin and does not have something like EditorInterface::get_script_editor (there is EditorInterface::is_plugin_enabled which seems useful for conditionally enabling it). In either case having a better api in godot for modifying all text editors would be a lot more scalable and would work with every editor without additional support.
Would be really useful, even for people who usually use external editors as you need instant feedback when editing and there's currently no support for
gdshader
in the official LSP.The actual logic seems pretty straight forward as it uses the exact same editor component, although I'm not sure how or if it's even possible to access it since it's an editor plugin and does not have something like
EditorInterface::get_script_editor
(there isEditorInterface::is_plugin_enabled
which seems useful for conditionally enabling it). In either case having a better api in godot for modifying all text editors would be a lot more scalable and would work with every editor without additional support.