Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/git/src/postCommitCommands.ts')
-rw-r--r--extensions/git/src/postCommitCommands.ts30
1 files changed, 30 insertions, 0 deletions
diff --git a/extensions/git/src/postCommitCommands.ts b/extensions/git/src/postCommitCommands.ts
new file mode 100644
index 00000000000..2fd6dc5676b
--- /dev/null
+++ b/extensions/git/src/postCommitCommands.ts
@@ -0,0 +1,30 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+import * as nls from 'vscode-nls';
+import { Command, Disposable } from 'vscode';
+import { PostCommitCommandsProvider } from './api/git';
+
+export interface IPostCommitCommandsProviderRegistry {
+ getPostCommitCommandsProviders(): PostCommitCommandsProvider[];
+ registerPostCommitCommandsProvider(provider: PostCommitCommandsProvider): Disposable;
+}
+
+const localize = nls.loadMessageBundle();
+
+export class GitPostCommitCommandsProvider implements PostCommitCommandsProvider {
+ getCommands(): Command[] {
+ return [
+ {
+ command: 'git.push',
+ title: localize('scm secondary button commit and push', "Commit & Push")
+ },
+ {
+ command: 'git.sync',
+ title: localize('scm secondary button commit and sync', "Commit & Sync")
+ },
+ ];
+ }
+}