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
dialog: show file extension in list view #3033
Conversation
It seemed like a sensible improvement to show the file extension when using the list view. This is due to the icons being a lot smaller.
The option in VSCode to only run a specific test is very useful but does apparently not help when you break other tests 🙈 |
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.
Looks great, but I see a potential panic
} else { | ||
item.name = fileName(location) | ||
if f.view == gridView { | ||
ext := filepath.Ext(item.name[1:]) |
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.
I think this might crash for a file named "H"?
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.
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.
Oops! thanks
Description:
Due to icons being a lot smaller for the list view, we should show the file extension to make it more clear to the user what file they are seeing. This PR makes that change and manages to clean up and optimize the code a bit in the process.
Fixes Jacalz/rymdport#39 but should be superseded by #3032 for a future release.
Checklist: