How to change new file default extension fast

Hi,
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?
image

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

hi
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:

rebind(WorkspaceCommandContribution).to(MyWorkspaceCommandContribution).inSingletonScope();

thanks, got it