Repository navigation
Expose goto_help for GDExtension on ScriptEditor - #90189
Conversation
|
I'd suggest exposing it in |
goto_help for GDExtension toolinggoto_help for GDExtension on ScriptEditor
|
Hi @AThousandShips, do you think there is any way this can be included in 4.3, given its simplicity? |
|
It depends, the 4.x is simply because all new features are assigned to 4.x until they're decided on, we haven't hit feature freeze yet, and this is small, so if it gets approved relatively soon it could be included in 4.3, but the fact that it's marked 4.x doesn't mean it can't possibly end up in 4.3 :) |
dsnopek
left a comment
There was a problem hiding this comment.
Seems good to me!
The only potential roadblock is if the editor folks don't want to expose this method for some reason, but to me it seems like it'd be useful for both GDExtension and GDScript.
There was a problem hiding this comment.
It would be good to add details on what the topic is meant to be, with some examples.
There was a problem hiding this comment.
Hi @akien-mga, that's reasonable. Just one question, I was considering appending this:
For example: [code]class_name:<class_name>[/code] or [code]class_method:<class_name>:<method_name>[/code].
My concern in this context are the < and > and how they should be represented. I also tried to find some other examples in the repository and it wasn't immediately obvious of any I could use as a basis for how best to represent this type of example where there is expected tokens combined with variable user-supplied data. If there is, could you point me to a reference?
There was a problem hiding this comment.
So the closest I found was in EditorCommandPalette that uses:
[code]"example/command1"[/code] then [code]example[/code] will be the section name.
If that's acceptable here in this context, I could use "class" and "method" to represent the user-supplied values to distinguish it from the expected static values that the help system expects. wdyt?
There was a problem hiding this comment.
Updated, let me know if it needs any further adjustments.
There was a problem hiding this comment.
That looks ok, but there seems to be more types of topics supported by this method, see:
Lines 2246 to 2306 in 7e4c150
So it should likely be a list or supported tags with their expected arguments.
And then a few real life examples like class_method:Node:add_child.
Would also be good to figure out what's the format used for GDScript class docs so that this could be shown as an example too (maybe it's just the registered class_name, I didn't check).
There was a problem hiding this comment.
So this is what I have come up with @AThousandShips / @akien-mga. It's a bit wordy, so I'm certainly open to suggestions, but I believe it conveys the details you requested.
|
Thanks! And congrats for your first merged Godot contribution 🎉 |
Thanks 🎉 |
Expose `goto_help` for GDExtension on `ScriptEditor`
Expose `goto_help` for GDExtension on `ScriptEditor`
Expose `goto_help` for GDExtension on `ScriptEditor`
Expose `goto_help` for GDExtension on `ScriptEditor`

Exposes a helper method
goto_helpon theScriptEditorthat enables GDExtension and other tooling to request help to be displayed for a given help encoded descriptor string.