We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 980fb4b commit 2c0115eCopy full SHA for 2c0115e
1 file changed
extensions/git/src/git.ts
@@ -1597,15 +1597,15 @@ export class Repository {
1597
}
1598
1599
1600
- async dropStash(index: number): Promise<void> {
+ async dropStash(index?: number): Promise<void> {
1601
const args = ['stash', 'drop'];
1602
1603
if (typeof index === 'number') {
1604
args.push(`stash@{${index}}`);
1605
+ }
1606
- try {
1607
- await this.run(args);
1608
- }
+ try {
+ await this.run(args);
1609
} catch (err) {
1610
if (/No stash found/.test(err.stderr || '')) {
1611
err.gitErrorCode = GitErrorCodes.NoStashFound;
0 commit comments