Skip to content

Conversation

@gasparnagy
Copy link
Contributor

@gasparnagy gasparnagy commented Dec 3, 2024

🤔 What's changed?

Fix: Error message box when creating feature file with space in its name

The "Add feature file" wizard has a special handling of feature files: it bypasses the standard VS "add" functionality and creates the file directly on disk. To simulate the VS "add" behavior it also opens the file after the add wizard has been finished. This is performed using DTE.ExecuteCommand("File.OpenFile", <filepath>) command that does not seem to handle spaces in file name by default, you need to wrap the file name with double quotes. This wrapping has been added now.

⚡️ What's your motivation?

Fixes #50

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

Can only be tested manually. Tests have been performed.

📋 Checklist:

  • I've changed the behaviour of the code
  • Users should know about my change
    • I have added an entry to the "[vNext]" section of the CHANGELOG, linking to this pull request & included my GitHub handle to the release contributors list.

This text was originally taken from the template of the Cucumber project, then edited by hand. You can modify the template here.

@gasparnagy gasparnagy requested a review from clrudolphi December 3, 2024 12:39
Copy link
Contributor

@clrudolphi clrudolphi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@gasparnagy gasparnagy merged commit c469828 into main Dec 3, 2024
2 checks passed
@gasparnagy gasparnagy deleted the fix-issue50-error-after-add-new-feature-file branch December 3, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message box when creating feature file with space in its name

3 participants