-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Autofill comment when inserting a new line in documentation #95955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
fea517b
84545f9
f0d5fe9
846d8d8
8456081
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -74,6 +74,7 @@ class CodeEdit : public TextEdit { | |||||||||
| int _calculate_spaces_till_next_right_indent(int p_column) const; | ||||||||||
|
|
||||||||||
| void _new_line(bool p_split_current_line = true, bool p_above = false); | ||||||||||
| void _auto_fill_doc_comments(int caret, bool p_above); | ||||||||||
|
|
||||||||||
| /* Auto brace completion */ | ||||||||||
| bool auto_brace_completion_enabled = false; | ||||||||||
|
|
@@ -185,6 +186,8 @@ class CodeEdit : public TextEdit { | |||||||||
| */ | ||||||||||
| Vector<RBMap<int, int>> delimiter_cache; | ||||||||||
|
|
||||||||||
| Vector<String> block_key_delimiters; | ||||||||||
|
|
||||||||||
| void _update_delimiter_cache(int p_from_line = 0, int p_to_line = -1); | ||||||||||
| int _is_in_delimiter(int p_line, int p_column, DelimiterType p_type) const; | ||||||||||
|
|
||||||||||
|
|
@@ -466,6 +469,9 @@ class CodeEdit : public TextEdit { | |||||||||
| Point2 get_delimiter_start_position(int p_line, int p_column) const; | ||||||||||
| Point2 get_delimiter_end_position(int p_line, int p_column) const; | ||||||||||
|
|
||||||||||
| Vector<String> get_block_key_delimiters() const; | ||||||||||
| void set_block_key_delimiters(const List<String> *p_delimiters); | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
No reason to pass it as a pointer unless it's optional, in that case it needs a null check But this should really use
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if it is viable to convert it to a Vector, as the API requires a List from the key delimiters. So I need to convert it to a Vector and then pass it to the method. It seems to complicate it a little bit. What do you think? See the update here: https://github.com/godotengine/godot/pull/95955/files#diff-fa2cafb4b2d8b59e5baeba0b861f7f2f6bf6c213d6387254fee5a7682478e588R264-R273 |
||||||||||
|
|
||||||||||
| /* Code hint */ | ||||||||||
| void set_code_hint(const String &p_hint); | ||||||||||
| void set_code_hint_draw_below(bool p_below); | ||||||||||
|
|
@@ -517,8 +523,6 @@ class CodeEdit : public TextEdit { | |||||||||
| void duplicate_selection(); | ||||||||||
| void duplicate_lines(); | ||||||||||
|
|
||||||||||
| void add_new_line_actions(const Callable &p_action); | ||||||||||
|
|
||||||||||
| CodeEdit(); | ||||||||||
| ~CodeEdit(); | ||||||||||
| }; | ||||||||||
|
|
||||||||||
Uh oh!
There was an error while loading. Please reload this page.