提交 b5bf3535 编写于 作者: K Krzysztof Cieślak

Fix stash pop

上级 13484ae9
......@@ -1110,14 +1110,14 @@ export class CommandCenter {
return;
}
const picks = this.model.stashes.map(r => `#${r.id}: ${r.description}`);
const picks = this.model.stashes.map(r => { return { label: `#${r.id}: ${r.description}`, description: "", derails: "", id: r.id }; });
const placeHolder = localize('pick stash', "Pick a stash");
const choice = await window.showQuickPick(picks, { placeHolder });
if (!choice) {
return;
}
return await this.model.stash(true, choice);
return await this.model.stash(true, choice.id);
}
@command('git.stashPopLatest')
......
......@@ -849,7 +849,7 @@ export class Repository {
if (pop) {
args.push('pop');
if (index) {
args.push(`"stash{${index}}"`);
args.push(`stash@{${index}}`);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册