summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Hide the warnings panel when no warnings presents.allkhor2019-02-131-4/+4
|
* Displays errors and warnings in a better way in the script editorGilles Roudière2019-02-011-15/+8
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Change LinkLabel back to Label in error status barChaosus2018-12-211-0/+9
|
* Revert "Use more subtle indentation guides in the script editor"Rémi Verschelde2018-12-131-2/+0
|
* Fix "index -1 out of range" error spam when the Editor is using ↵Mariano Suligoy2018-12-111-2/+2
| | | | translations. Fixes #24277
* Merge pull request #20609 from YeldhamDev/menu_hover_explicitRémi Verschelde2018-12-091-0/+2
|\ | | | | Make opening menus with the same parent on mouse focus explicit
| * Make opening menus with the same parent on mouse focus explicitMichael Alexsander Silva Dias2018-11-201-0/+2
| |
* | Merge pull request #20725 from Calinou/textedit-subtle-indent-guidesRémi Verschelde2018-12-091-0/+2
|\ \ | | | | | | Use more subtle indentation guides in the script editor
| * | Use more subtle indentation guides in the script editorHugo Locurcio2018-10-031-0/+2
| | |
* | | Merge pull request #23680 from YeldhamDev/unified_help_search_revivedRémi Verschelde2018-11-221-1/+1
|\ \ \ | | | | | | | | Unified Class and Reference Search 2: Resurrection
| * | | Unify editor class and reference searchRay Koopa2018-11-201-1/+1
| | |/ | |/| | | | | | | Co-authored-by: Michael Alexsander Silva Dias <michaelalexsander@protonmail.com>
* / | Allows user to click on error line to jump into error.Chaosus2018-11-221-0/+1
|/ /
* | Fix clone line undo history and extra new line, issue 21811Paulb232018-11-041-1/+1
| |
* | Small capitalization fixes across the editorMichael Alexsander Silva Dias2018-10-261-2/+2
| |
* | Merge pull request #23017 from Calinou/increase-source-font-line-spacingRémi Verschelde2018-10-251-1/+1
|\ \ | | | | | | Increase the source font's line spacing
| * | Increase the source font's line spacingHugo Locurcio2018-10-141-1/+1
| | | | | | | | | | | | | | | This also increases line spacing in license texts in the editor's About dialog.
* | | Improve toggle comment function in script editor.Unknown2018-10-091-3/+29
|/ /
* | Fix warnings on virtual methods [-Woverloaded-virtual] ↵Rémi Verschelde2018-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [-Wdelete-non-virtual-dtor] Fixes the following Clang 7 warnings: ``` editor/editor_help.h:123:7: warning: 'EditorHelpIndex::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:95:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:96:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/curve_editor_plugin.h:141:15: warning: 'CurvePreviewGenerator::generate' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/script_editor_plugin.h:70:7: warning: 'ScriptEditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/quick_open.h:69:7: warning: 'EditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] main/tests/test_io.cpp:53:15: warning: 'TestIO::TestMainLoop::input_event' hides overloaded virtual function [-Woverloaded-virtual] servers/audio/effects/audio_effect_record.h:69:15: warning: 'AudioEffectRecordInstance::process_silence' hides overloaded virtual function [-Woverloaded-virtual] core/os/memory.h:119:2: warning: destructor called on non-final 'ContextGL_X11' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'EditorScriptCodeCompletionCache' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'Engine' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'PhysicalBone::JointData' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerScene' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerViewport' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] ```
* | Fix warnings about unused variables [-Wunused-variable]Rémi Verschelde2018-09-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_scene_gles2.cpp:1139:15: warning: unused variable 'offset' [-Wunused-variable] drivers/gles2/rasterizer_scene_gles2.cpp:1205:39: warning: unused variable 'multi_mesh' [-Wunused-variable] drivers/gles2/rasterizer_storage_gles2.cpp:359:7: warning: unused variable 'srgb' [-Wunused-variable] drivers/gles2/shader_gles2.cpp:1016:45: warning: unused variable 'texture_hints' [-Wunused-variable] editor/animation_track_editor.cpp:776:9: warning: unused variable 'keys_to' [-Wunused-variable] editor/editor_inspector.cpp:273:7: warning: unused variable 'vs_height' [-Wunused-variable] editor/editor_themes.cpp:202:10: warning: unused variable 'begin_time' [-Wunused-variable] editor/editor_themes.cpp:239:10: warning: unused variable 'end_time' [-Wunused-variable] editor/plugins/animation_blend_tree_editor_plugin.cpp:726:17: warning: unused variable 'an' [-Wunused-variable] editor/plugins/script_text_editor.cpp:1278:8: warning: unused variable 'fold_state' [-Wunused-variable] main/main.cpp:132:13: warning: 'use_vsync' defined but not used [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:231:8: warning: unused variable 'y_end' [-Wunused-variable] modules/cvtt/image_compress_cvtt.cpp:311:6: warning: unused variable 'shift' [-Wunused-variable] modules/gdscript/gdscript_editor.cpp:58:7: warning: unused variable 'th' [-Wunused-variable] modules/gridmap/grid_map.cpp:1084:6: warning: unused variable 'ofs' [-Wunused-variable] modules/theora/video_stream_theora.cpp:442:9: warning: unused variable 'tr' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2606:6: warning: unused variable 'count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2829:6: warning: unused variable 'seq_count' [-Wunused-variable] modules/visual_script/visual_script_editor.cpp:2844:24: warning: unused variable 'vnode_function' [-Wunused-variable] modules/websocket/lws_peer.cpp:122:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:135:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:63:12: warning: unused variable 'peer_data' [-Wunused-variable] modules/websocket/lws_peer.cpp:91:12: warning: unused variable 'peer_data' [-Wunused-variable] platform/android/export/export.cpp:763:16: warning: unused variable 'node_size' [-Wunused-variable] scene/gui/rich_text_label.cpp:850:10: warning: unused variable 'x_ofs' [-Wunused-variable] scene/gui/text_edit.cpp:653:8: warning: unused variable 'tab_w' [-Wunused-variable] scene/resources/bit_mask.cpp:186:6: warning: unused variable 'i' [-Wunused-variable] scene/resources/mesh.cpp:549:20: warning: '_array_name' defined but not used [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:107:10: warning: unused variable 'v2' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:108:10: warning: unused variable 'v3' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:109:10: warning: unused variable 'v4' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:110:10: warning: unused variable 'v5' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:111:10: warning: unused variable 'v0n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:112:10: warning: unused variable 'v1n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:113:10: warning: unused variable 'v2n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:114:10: warning: unused variable 'v3n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:115:10: warning: unused variable 'v4n' [-Wunused-variable] servers/audio/audio_rb_resampler.cpp:116:10: warning: unused variable 'v5n' [-Wunused-variable] servers/visual/default_mouse_cursor.xpm:2:21: warning: 'default_mouse_cursor_xpm' defined but not used [-Wunused-variable] ```
* | Tweak some editor texts' capitalization, use "Go to" instead of "Goto"Hugo Locurcio2018-09-251-6/+7
| | | | | | | | | | This also fixes a typo in the `debugger/debug_with_external_editor` shortcut.
* | Fixed syntax highlighting setting not being savedDualMatrix2018-09-201-0/+2
| | | | | | | | Fixed syntax highlighting setting not being saved
* | Merge pull request #21730 from reisraff/fixing_key_shortcutRémi Verschelde2018-09-131-1/+1
|\ \ | | | | | | #21500 Fixing key shortcut
| * | #21500 Fixing key shortcutRafael Reis2018-09-031-1/+1
| | |
* | | Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ \ \ | | | | | | | | Misc. typos
| * | | Misc. typosluz.paz2018-09-121-1/+1
| |/ / | | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* / / Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
|/ / | | | | | | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* | Fix some editor shortcuts' default values not being set properlyHugo Locurcio2018-09-011-7/+3
| | | | | | | | | | | | | | | | This also changes the uppercase/lowercase/capitalize shortcuts to Shift+F4, Shift+F5 and Shift+F6 respectively to avoid conflicts with the new Find Next shortcut. This closes #21612.
* | Merge pull request #21496 from tko/macos-completeRémi Verschelde2018-08-281-1/+2
|\ \ | | | | | | [macOS] change "Complete Symbol" shortcut to not conflict with Spotlight
| * | [macOS] change "Complete Symbol" shortcut to not conflict with SpotlightTommi Komulainen2018-08-271-1/+2
| | | | | | | | | | | | | | | The default shortcut for Spotlight search is Command+Space so try not to use it. Instead use Ctrl+Space similar to Xcode.
* | | [macOS] fix conflicting keybindings for (Find and) Replace...Tommi Komulainen2018-08-271-1/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` Play Scene Command+R (no change) Replace... Command+R => Option+Command+F Find Function... Option+Command+F => Ctrl+Command+J ``` On macOS Option+Command+F is commonly used for Find and Replace so use it instead to avoid conflicting with "Play Scene" And as Option+Command+F is currently used by "Find Function..." rebind the latter to Control+Command+J which is the Xcode shortcut for "Jump to Definition" Fixes #19817
* | Make some debug prints verbose-only, remove othersRémi Verschelde2018-08-241-1/+0
| |
* | Added system for GDScript warningsGeorge Marques2018-08-101-3/+72
|/ | | | | | | - Count and panel per script. - Ability to disable warnings per script using special comments. - Ability to disable warnings globally using Project Settings. - Option to treat enabled warnings as errors.
* context menu improvementsIan2018-07-261-40/+73
|
* Allow opening and editing of any utf_8 file in script editorPaulb232018-07-221-27/+27
|
* Refactored text manipulation into CodeTexteditorPaulb232018-07-221-344/+21
|
* Add editor highlight for type-safe linesGeorge Marques2018-07-201-1/+20
| | | | | The line number is hightlighted to indicate that the line contains only type-safe code.
* Merge pull request #19498 from guilhermefelipecgs/fix_regressionMax Hilbrunner2018-07-051-0/+1
|\ | | | | Fix "find and replace" initializing with wrong size
| * Fix "find and replace" initializing with wrong sizeGuilherme Felipe2018-06-131-0/+1
| | | | | | | | Fix the code editor outside the allowed limits.
* | Merge pull request #19166 from Grula/issue-18779Max Hilbrunner2018-07-031-10/+21
|\ \ | | | | | | Changed "Syntax Menu" into radio Menu
| * | Syntax Menu as sub-menu of EditNIkola Grulovic2018-06-011-10/+21
| |/ | | | | | | Moved syntax menu to be sub-menu of edit, as-well made choices radio buttons
* / Fix shortcuts using KEY_MASK_CTRL instead of KEY_MASK_CMDRémi Verschelde2018-06-111-9/+21
|/ | | | | | | | | | | KEY_MASK_CMD is automatically replaced by KEY_MASK_CTRL on non-OSX and KEY_MASK_META (Command key) on OSX, so it should be used for all Ctrl/Cmd + key shortcuts. Also de-hacked the macOS shortcut replacements with proper conditional definition. Not tested on macOS, cannot judge if they are good shortcuts. Fixes #10761.
* Merge pull request #18642 from flashyincceo/engine-clickJuan Linietsky2018-05-071-0/+2
|\ | | | | Fix script editor CTRL+CLICK on singleton functions
| * Fix script editor CTRL+CLICK on singleton functionsPeter Folkins2018-05-051-0/+2
| |
* | Merge pull request #18308 from ericmccarthy7/developMax Hilbrunner2018-05-071-0/+4
|\ \ | |/ |/| Fix clone down newline bug
| * Fix clone down newline bugEric McCarthy2018-04-191-0/+4
| | | | | | | | | | | | | | | | | | | | Previously cloning down at the end of a script was broken if there was not an additional empty line. This fix ensures there is an empty line before attempting to clone downwards. Fixes #18206, cheers!
* | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-4/+4
|/
* Merge pull request #16571 from Zylann/find_in_filesJuan Linietsky2018-04-081-1/+22
|\ | | | | Added find & replace in files
| * Added find & replace in filesMarc Gilleron2018-02-191-1/+22
| |
* | Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighterRémi Verschelde2018-04-041-2/+24
|\ \ | | | | | | Abstracted the syntax highlighter from text edit.