Closed ErikEJ closed 3 months ago
That would be a tough job, since .vsct and .resx have nothing in common.
A much simpler solution, that also avoids the need to maintain multiple .vsct files is this: https://github.com/dotnet/ResXResourceManager/blob/d5651be61ddf2340311b36a0010016210787678a/src/ResXManager.VSIX/VSPackage.cs#L306
Elegant!
Looking at this, never knew there was a OleMenuCommand with the .Text property 😢
Note to self: requires this CommandFlag for the Button in the .vsct file:
<CommandFlag>TextChanges</CommandFlag>
Basically the button text in these files: https://github.com/ErikEJ/EFCorePowerTools/tree/master/src/GUI/EFCorePowerTools