diff --git a/CHANGELOG.md b/CHANGELOG.md index 885c79a0..4edc3643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ ## Bug fixes: -*Contributors of this release (in alphabetical order):* +* Fix: Error message box when creating feature file with space in its name (#50) + +*Contributors of this release (in alphabetical order):* @gasparnagy # v2024.7.204 - 2024-11-20 diff --git a/Reqnroll.VisualStudio.Package/Wizards/Infrastructure/VsSimulatedItemAddProjectScopeWizard.cs b/Reqnroll.VisualStudio.Package/Wizards/Infrastructure/VsSimulatedItemAddProjectScopeWizard.cs index a9b9b40b..604fb88c 100644 --- a/Reqnroll.VisualStudio.Package/Wizards/Infrastructure/VsSimulatedItemAddProjectScopeWizard.cs +++ b/Reqnroll.VisualStudio.Package/Wizards/Infrastructure/VsSimulatedItemAddProjectScopeWizard.cs @@ -92,7 +92,7 @@ private static void OpenFile(string targetFile, Project project, IDeveroomLogger if (projectItem != null) { //projectItem.Open(); - project.DTE.ExecuteCommand("File.OpenFile", targetFile); + project.DTE.ExecuteCommand("File.OpenFile", $"\"{targetFile}\""); logger.LogVerbose($"File opened: {targetFile}"); } }