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

Fix 'Show in FileSystem' jumps to incorrect entry under certain conditions #102336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Maran23
Copy link
Contributor

@Maran23 Maran23 commented Feb 2, 2025

Fixes: #102335

The broken selection was caused because we are searching the FileSystem Tree with an ends_with to find the correct file.
In the case which is described in the issue, if we search for dice.gd, we will accidentally select attack_dice.gd, because it also ends with dice.gd.

The fix is to add a slash to the file search logic, e.g. we are now searching for /dice.gd instead. With that, we make sure to not accidentally select something just because it ends with the same string.

@Maran23 Maran23 requested a review from a team as a code owner February 2, 2025 20:13
@AThousandShips AThousandShips added this to the 4.4 milestone Feb 3, 2025
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.

'Show in FileSystem' does not work under certain conditions
3 participants