We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca45211 commit e4763e6Copy full SHA for e4763e6
editor/script/script_editor_plugin.cpp
@@ -4645,7 +4645,11 @@ bool ScriptEditorPlugin::handles(Object *p_object) const {
4645
}
4646
4647
if (Object::cast_to<JSON>(p_object)) {
4648
- return true;
+ // This is here to stop resource files of class JSON from getting confused
4649
+ // with json files and being opened in the text editor.
4650
+ if (Object::cast_to<JSON>(p_object)->get_path().get_extension().to_lower() == "json") {
4651
+ return true;
4652
+ }
4653
4654
4655
return p_object->is_class("Script");
0 commit comments