extensions/github/src/commands.ts/registerCommands
export function registerCommands(gitAPI: GitAPI): vscode.Disposable {
	const disposables = new DisposableStore();

	disposables.add(vscode.commands.registerCommand('github.publish', async () => {
		try {
			publishRepository(gitAPI);
		} catch (err) {
			vscode.window.showErrorMessage(err.message);
		}
	}));

	disposables.add(vscode.commands.registerCommand('github.copyVscodeDevLink', async () => {
		return copyVscodeDevLink(gitAPI, true);
	}));

	disposables.add(vscode.commands.registerCommand('github.copyVscodeDevLinkFile', async () => {
		return copyVscodeDevLink(gitAPI, false);
	}));

	disposables.add(vscode.commands.registerCommand('github.openOnVscodeDev', async () => {
		return openVscodeDevLink(gitAPI);
	}));

	return disposables;
}