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

Code Editor 2: os_switch constant appearing above switch in autocomplete #7823

Open
KormexGit opened this issue Sep 28, 2024 — with GM Bug Reporter · 2 comments
Open
Assignees
Labels
ide-bug Bugs with the GameMaker IDE
Milestone

Comments

@KormexGit
Copy link

KormexGit commented Sep 28, 2024

Description

If you type swi, you will get autocomplete for os_switch and switch, but it defaults to os_switch, which is quite rare to use compared to a switch statement. In CE1, switch is the first option.

image

CE1:

image

(Why does CE1 think switch is a macro lol)
(Was it a hack to make it appear first on the autocomplete list?)

Steps To Reproduce

Type swi and hit enter. You'll get os_switch instead of switch.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.626 Runtime v2024.1100.0.652

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

6d53b2db-ec07-46c9-92e0-ca801061d527

@gm-bug-reporter gm-bug-reporter bot added the ide-bug Bugs with the GameMaker IDE label Sep 28, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Sep 30, 2024
@KormexGit
Copy link
Author

A similar annoyance occurs when trying to type constructor, when typing con or cons you get rarely used constants appearing first:
image
image

@zreedy zreedy added this to the 2025.1 milestone Nov 19, 2024
@zreedy zreedy moved this from Backlog to Todo in Team Workload Nov 21, 2024
@zreedy
Copy link

zreedy commented Dec 11, 2024

Fixed. Tweaks to the ranking algorithm now correctly deranks snippets to the bottom unless they have a direct match. Additionally, longer direct matches will now rank higher. Both of these conditions were expected but did not function correctly prior.

@zreedy zreedy moved this from Todo to In Progress in Team Workload Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE
Projects
Status: In Progress
Development

No branches or pull requests

2 participants