How to change new file default extension fast

I create a custom extension that uses build-in WorkspaceCommands.NEW_FILE command, my problem is that I do want to use the .txt extension when creating, Is there a quick method to use a custom file extension?

@wss you can re-implement the following method when extending the contribution in your custom extension:

I extend the WorkspaceCommandContribution,but it did not work, I think I miss some step

@wss You don’t want to bind it as a new CommandContribution, but to rebind/replace the original one:


thanks, got it