We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d92568 commit 590a534Copy full SHA for 590a534
Rubberduck.Core/UI/CodeExplorer/Commands/ExportCommand.cs
@@ -101,7 +101,8 @@ public bool PromptFileNameAndExport(QualifiedModuleName qualifiedModule)
101
var component = ProjectsProvider.Component(qualifiedModule);
102
try
103
{
104
- var path = Path.GetDirectoryName(dialog.FileName);
+ //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.
106
component.ExportAsSourceFile(path, false, true); // skipped optional parameters interfere with mock setup
107
}
108
catch (Exception ex)
0 commit comments