-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Expose bookmark, breakpoint, and mark safe functions in TextEdit #40629
Conversation
Can this be 3.2 only? I need it for my code translation tool |
doc/classes/TextEdit.xml
Outdated
<argument index="0" name="line" type="int"> | ||
</argument> | ||
<description> | ||
Returns [code]true[/code] when the specified [code]line[/code] is bookmarked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be indented one level more. Running doctool
should fix it for you.
I'm not fond of exposing those APIs which are made specifically for Godot's code editor and not for a general purpose text editor. They're so specific that it opens the way for users requesting adding other similar and highly use-case specific APIs... That being said this concern has been addressed in |
5ed24c6
to
e656af5
Compare
doc/classes/TextEdit.xml
Outdated
@@ -261,6 +261,33 @@ | |||
<description> | |||
Returns whether the line at the specified index is hidden or not. | |||
</description> | |||
</method> | |||
<method name="is_line_set_as_bookmark" qualifiers="const"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation issue here.
doc/classes/TextEdit.xml
Outdated
@@ -356,6 +383,29 @@ | |||
<description> | |||
Sets the text for a specific line. | |||
</description> | |||
</method> | |||
<method name="set_line_as_bookmark"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
b895701
to
5cf3024
Compare
Sorry for the mess I created while changing the base. Should be same commit now. And fixed all the issues. Had to apply the patch by hand... |
d881348
to
4ff0df7
Compare
Thanks! |
I am working on tool and need those functions exposed. I think they should be exposed, because they are public methods and you can even set the theme properties for them. There is a lot more to expose still...