Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.1k
Fix: Validate filenames consisting solely of extensions#1802
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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.
Uh oh!
There was an error while loading.Please reload this page.
thecoolwinter left a comment
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.
LeonardoLarranaga commentedJul 11, 2024
@thecoolwinter Working on it! |
#Conflicts:#CodeEdit/Features/CEWorkspace/Models/CEWorkspaceFile.swift
thecoolwinter left a comment
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!
thecoolwinter commentedJul 11, 2024
@allcontributors please add@LeonardoLarranaga for code |
I've put upa pull request to add@LeonardoLarranaga! 🎉 |

Uh oh!
There was an error while loading.Please reload this page.
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: