mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Add command to drop all stashes
This commit is contained in:
@@ -1794,10 +1794,13 @@ export class Repository {
|
||||
}
|
||||
|
||||
async dropStash(index?: number): Promise<void> {
|
||||
const args = ['stash', 'drop'];
|
||||
const args = ['stash'];
|
||||
|
||||
if (typeof index === 'number') {
|
||||
args.push('drop');
|
||||
args.push(`stash@{${index}}`);
|
||||
} else {
|
||||
args.push('clear');
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user