-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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: Validate filenames consisting solely of extensions #1802
Conversation
… '.gitignore', '.editorconfig')
…s with a ".", every component will be checked to get a valid type.
…s with a ".", every component will be checked to get a valid type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, there is one edge case created by taking the first result. For instance this file should be a yaml file icon. Could you reverse the check? So we first check if there's a valid file extension, then do your check for the prefixed filename. Then if that all fails we do a txt file.
@thecoolwinter Working on it! |
#Conflicts: # CodeEdit/Features/CEWorkspace/Models/CEWorkspaceFile.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
@allcontributors please add @LeonardoLarranaga for code |
I've put up a pull request to add @LeonardoLarranaga! 🎉 |
Description
This pull request resolves an issue where supported files with only extensions (e.g., .env, .gitignore) were not displaying their correct icons.
Related Issues
Checklist
Screenshots
Before:
After: