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

Fix stash pop

上级 13484ae9
...@@ -1110,14 +1110,14 @@ export class CommandCenter { ...@@ -1110,14 +1110,14 @@ export class CommandCenter {
return; 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 placeHolder = localize('pick stash', "Pick a stash");
const choice = await window.showQuickPick(picks, { placeHolder }); const choice = await window.showQuickPick(picks, { placeHolder });
if (!choice) { if (!choice) {
return; return;
} }
return await this.model.stash(true, choice); return await this.model.stash(true, choice.id);
} }
@command('git.stashPopLatest') @command('git.stashPopLatest')
......
...@@ -849,7 +849,7 @@ export class Repository { ...@@ -849,7 +849,7 @@ export class Repository {
if (pop) { if (pop) {
args.push('pop'); args.push('pop');
if (index) { 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.
先完成此消息的编辑!
想要评论请 注册