Skip to content

Commit 590a534

Browse files
committed
ExportCommand.cs now passes the file name when exporting
1 parent 1d92568 commit 590a534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Rubberduck.Core/UI/CodeExplorer/Commands/ExportCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public bool PromptFileNameAndExport(QualifiedModuleName qualifiedModule)
101101
var component = ProjectsProvider.Component(qualifiedModule);
102102
try
103103
{
104-
var path = Path.GetDirectoryName(dialog.FileName);
104+
//var path = Path.GetDirectoryName(dialog.FileName);
105+
var path = dialog.FileName; // This makes it that the file is named not as the module name, but as the file name the user provided in the explorer.
105106
component.ExportAsSourceFile(path, false, true); // skipped optional parameters interfere with mock setup
106107
}
107108
catch (Exception ex)

0 commit comments

Comments
 (0)