瀏覽代碼

Fixes show stashed changes with multiple repos

main
Eric Amodio 5 年之前
父節點
當前提交
d5f889232e
共有 2 個文件被更改,包括 13 次插入7 次删除
  1. +6
    -0
      CHANGELOG.md
  2. +7
    -7
      src/commands/showQuickStashList.ts

+ 6
- 0
CHANGELOG.md 查看文件

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## Fixed
- Fixes the _Show Stashed Changes_ (`gitlens.showQuickStashList`) command with multiple repositories
## [9.7.3] - 2019-05-11
## Fixed

+ 7
- 7
src/commands/showQuickStashList.ts 查看文件

@ -22,16 +22,16 @@ export class ShowQuickStashListCommand extends ActiveEditorCachedCommand {
async execute(editor?: TextEditor, uri?: Uri, args: ShowQuickStashListCommandArgs = {}) {
uri = getCommandUri(uri, editor);
const repoPath = await getRepoPathOrActiveOrPrompt(
uri,
editor,
`Show stashed changes for which repository${GlyphChars.Ellipsis}`
);
if (!repoPath) return undefined;
const progressCancellation = StashListQuickPick.showProgress('list');
try {
const repoPath = await getRepoPathOrActiveOrPrompt(
uri,
editor,
`Show stashed changes for which repository${GlyphChars.Ellipsis}`
);
if (!repoPath) return undefined;
const stash = await Container.git.getStashList(repoPath);
if (stash === undefined) return window.showWarningMessage('Unable to show stashed changes');

Loading…
取消
儲存