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

Add separate program case for Godot Resources #88523

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Feb 18, 2024

Open in External program option in FileSystem Dock currently checks only for file types, which might yield some wrong results in case of tres files (like opening AudioStreamGenerator in audio editor). Since they are always text, the dock will now always open them with the external text editor, or a default program for tres files. The PR also includes some small refactor.

@KoBeWi KoBeWi added this to the 4.x milestone Feb 18, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner February 18, 2024 23:27
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this counts for anything but have a cookie

@akien-mga
Copy link
Member

Should the same logic be applied to tscn files?

@Mickeon
Copy link
Contributor

Mickeon commented Feb 19, 2024

Not sure where this is handled but in 4.2 this seems to already be the case.

@KoBeWi
Copy link
Member Author

KoBeWi commented Feb 19, 2024

tscn uses default program, and you probably have it configured to VS Code. I can add an explicit case.

@Calinou
Copy link
Member

Calinou commented Feb 19, 2024

Should binary .scn/.res files be handled here as well?

@KoBeWi
Copy link
Member Author

KoBeWi commented Feb 19, 2024

Maybe, but how? Should they fallback to the default program?

@Mickeon
Copy link
Contributor

Mickeon commented Feb 19, 2024

Whatever program one would use it'd still display as gibberish, with maybe a few words somewhere in there, so maybe yes.

@KoBeWi KoBeWi changed the title Add special external program case for tres files Add separate program case for Godot Resources Feb 19, 2024
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 20, 2024
@akien-mga akien-mga merged commit b714563 into godotengine:master Feb 20, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the open_text_as_text branch February 20, 2024 11:47
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.

4 participants