File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
addons/GDQuest_GDScript_formatter Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -449,15 +449,11 @@ func format_code(script: GDScript, force_reorder := false) -> String:
449449 formatter_arguments .push_back ("--indent-size=%d " % get_editor_setting (SETTING_INDENT_SIZE ))
450450
451451 var should_reorder := force_reorder or get_editor_setting (SETTING_REORDER_CODE ) as bool
452- # TODO: remove this safety check once we have safe mode support for reorder_code
453- if should_reorder and get_editor_setting (SETTING_SAFE_MODE ):
454- push_error ("GDScript Formatter: Settings 'reorder_code' and 'safe_mode' settings are incompatible and cannot be used together." )
455- return ""
456452
457453 if should_reorder :
458454 formatter_arguments .push_back ("--reorder-code" )
459455
460- if not force_reorder and get_editor_setting (SETTING_SAFE_MODE ):
456+ if get_editor_setting (SETTING_SAFE_MODE ):
461457 formatter_arguments .push_back ("--safe" )
462458
463459 formatter_arguments .push_back (ProjectSettings .globalize_path (script_path ))
You can’t perform that action at this time.
0 commit comments