Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Default file type when adding files to a project #233

Open
@dgrunwald

Description

@dgrunwald

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:

  1. Configurable default file filter. Project type specific?
  2. 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.

https://github.com/icsharpcode/SharpDevelop/blob/master/src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/Commands/FolderNodeCommands.cs#L51


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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions