Default file type when adding files to a project #233
Description
SD-1906, originally created on 5/29/2012 20:42:56 by Matt Ward
Currently the default file type used in the OpenFileDialog is whatever
is first in the list of file filters.
Possible enhancement:
- Configurable default file filter. Project type specific?
- Save the last filter used and set it again when the OpenFileDialog
is used.
Comment from Daniel Grunwald on 5/29/2012 20:45:03:
We could also generate an entry 'all supported file types' and select
that by default.
Comment from Matt Ward on 6/29/2013 22:11:56:
All supported file types has been added to SharpDevelop 5 when opening
files but not when adding files to a project.
Looking at the code the original behaviour was to select the file
extension that was associated with the project binding. However the
comparison incorrectly matches .cshtml for C# project files instead of
matching .cs files.
Comment from Daniel Grunwald on 6/30/2013 00:18:09:
I think the best solution is to remove the matching logic and use the
'all supported file types' filter instead.
Even if we fix the matching logic to use *.cs for C# projects; that
still wouldn't show *.xaml files which are also valid in C# projects.