Repository navigation
Godot addon: Fix script editor menu in Godot 4.8 - #376
Open
prakhars144 wants to merge 1 commit into
Open
prakhars144 wants to merge 1 commit into
prakhars144 wants to merge 1 commit into
Conversation
Signed-off-by: Prakhar Shukla <prakharshukla@outlook.in>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements:
Related issue: Fixes #371.
What kind of change does this PR introduce?
Bug fix for the Godot editor add-on and standalone add-on.
Does this PR introduce a breaking change?
No.
New feature or change
What is the current behavior?
In Godot 4.8, the script editor wraps its existing menu layout in a
DocumentEditorContainer. Both add-ons fail to locate the menu bar and show a warning instead of adding the Format menu.What is the new behavior?
Both add-ons recognize the new wrapper while retaining support for the previous editor layout. The Format menu is inserted after the last script editor menu as before.
Other information
Tested with Godot 4.8 beta 4 on Windows using a headless editor integration harness. For both menu implementations, verified menu discovery and placement in the actual 4.8 editor, format action dispatch and cleanup, and a simulated legacy layout including empty-container cases. Also ran
git diff --check.