Closed JeremyCaron closed 5 months ago
Took a look at your code and finally realized the error of my ways! The proper syntax was this:
"runOnSave.commands": [
{
"match": ".*\\.cs$",
"commandBeforeSaving": "vsSharper.sortUsings",
"runIn": "vscode"
}
]
Working great now!!
Where I got confused is that your README says runOnSave.commandBeforeSaving
in the Config section, and mentions nothing about commandBeforeSaving
in the Command Options section.
Sorry, I wrongly updated the readme... will fix it soon.
Readme will be updated at next release v1.7.2, thanks.
Hi, I'm on version 1.7.1 and I'm seeing intellisense support your new "commandsBeforeSaving" option. However, nothing gets executed when I use this versus "runOnSave.Commands". Example:
I see this run successfully in the output tab for your extension and my cs file is changed as a result of the command being executed, but when I change to:
Nothing shows up in the output tab and the cs file I saved doesn't have its usings organized.
I was trying to switch to the latter, because when I use the former, the file changes as a result of the command but it actually doesn't get saved until I save it a second time which isn't the behavior I was shooting for.
Also, I noticed that it seems like there's a typo in your documentation, it's saying the option is called "runOnSave.commandBeforeSaving" (command not pluralized) rather than "runOnSave.commandsBeforeSaving".
Thanks for your consideration.