Skip to content

Commit 1f299ab

Browse files
committed
Add more commands
1 parent a1fe7d1 commit 1f299ab

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
"onCommand:extension.gitextensions.mergetool",
2222
"onCommand:extension.gitextensions.pull",
2323
"onCommand:extension.gitextensions.push",
24+
"onCommand:extension.gitextensions.reset",
2425
"onCommand:extension.gitextensions.settings",
26+
"onCommand:extension.gitextensions.stash",
27+
"onCommand:extension.gitextensions.synchronize",
2528
"onCommand:extension.gitextensions.tag",
2629
"onCommand:extension.gitextensions.remotes"
2730
],
@@ -76,10 +79,22 @@
7679
"command": "extension.gitextensions.push",
7780
"title": "GitExtensions: Push commits"
7881
},
82+
{
83+
"command": "extension.gitextensions.reset",
84+
"title": "GitExtensions: Reset changes"
85+
},
7986
{
8087
"command": "extension.gitextensions.settings",
8188
"title": "GitExtensions: Open settings"
8289
},
90+
{
91+
"command": "extension.gitextensions.stash",
92+
"title": "GitExtensions: Manage stashs"
93+
},
94+
{
95+
"command": "extension.gitextensions.synchronize",
96+
"title": "GitExtensions: Synchronize (Commit / Pull / Push)"
97+
},
8398
{
8499
"command": "extension.gitextensions.tag",
85100
"title": "GitExtensions: Create a tag"

src/extension.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,30 @@ export function activate(context: vscode.ExtensionContext) {
135135
})
136136
);
137137

138+
context.subscriptions.push(
139+
vscode.commands.registerCommand("extension.gitextensions.reset", () => {
140+
launchGitExtensions("reset");
141+
})
142+
);
143+
138144
context.subscriptions.push(
139145
vscode.commands.registerCommand("extension.gitextensions.settings", () => {
140146
launchGitExtensions("settings");
141147
})
142148
);
143149

150+
context.subscriptions.push(
151+
vscode.commands.registerCommand("extension.gitextensions.stash", () => {
152+
launchGitExtensions("stash");
153+
})
154+
);
155+
156+
context.subscriptions.push(
157+
vscode.commands.registerCommand("extension.gitextensions.synchronize", () => {
158+
launchGitExtensions("synchronize");
159+
})
160+
);
161+
144162
context.subscriptions.push(
145163
vscode.commands.registerCommand("extension.gitextensions.tag", () => {
146164
launchGitExtensions("tag");

0 commit comments

Comments
 (0)