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 () => {
		try {
			const permalink = getPermalink(gitAPI, 'https://vscode.dev/github');
			if (permalink) {
				vscode.env.clipboard.writeText(permalink);
			}
		} catch (err) {
			vscode.window.showErrorMessage(err.message);
		}
	}));

	return disposables;
}