Skip to content
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

Little changes to FlxDebugger code completion. #3222

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

DetectiveBaldi
Copy link
Contributor

@DetectiveBaldi DetectiveBaldi commented Jul 20, 2024

Currently, typing out a simple line in the console, (e.g. FlxG.state.exists = false;) and pressing enter will result in code completion automatically adding a phrase to your command, instead of just running it. (resulting in e.g. FlxG.state.exists = false;clearBitmapLog)

To fix this I simply added a case to CompletionHandler.hx that closes the code completion if the current command ends with ;.

This pull requests also makes a change to CompletionList.hx that allows you to press TAB (along with ENTER) in order to fill in the currently selected completion. This is a common bind in a lot of other programs.

@Geokureli Geokureli merged commit 64967e3 into HaxeFlixel:dev Aug 6, 2024
11 checks passed
@Geokureli
Copy link
Member

Thanks!

@Geokureli Geokureli added this to the 5.9.0 milestone Aug 6, 2024
@DetectiveBaldi DetectiveBaldi deleted the flixel-completion branch August 15, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants