From 9c8b81090c122b5b84f7d4976facecfa7a8fa09d Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 20 Sep 2018 23:18:41 -0400 Subject: [PATCH] Changes Open Changed Files to prompt for repo --- src/commands/openChangedFiles.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/commands/openChangedFiles.ts b/src/commands/openChangedFiles.ts index 34ebf0c..1bb5875 100644 --- a/src/commands/openChangedFiles.ts +++ b/src/commands/openChangedFiles.ts @@ -5,7 +5,7 @@ import { Container } from '../container'; import { Logger } from '../logger'; import { Messages } from '../messages'; import { Arrays } from '../system'; -import { ActiveEditorCommand, Commands, getCommandUri, getRepoPathOrActiveOrPrompt, openEditor } from './common'; +import { ActiveEditorCommand, Commands, getCommandUri, getRepoPathOrPrompt, openEditor } from './common'; export interface OpenChangedFilesCommandArgs { uris?: Uri[]; @@ -23,10 +23,9 @@ export class OpenChangedFilesCommand extends ActiveEditorCommand { if (args.uris === undefined) { args = { ...args }; - const repoPath = await getRepoPathOrActiveOrPrompt( - uri, - editor, - `Open changed files in which repository${GlyphChars.Ellipsis}` + const repoPath = await getRepoPathOrPrompt( + undefined, + `Open all files changed in which repository${GlyphChars.Ellipsis}` ); if (!repoPath) return undefined; @@ -44,7 +43,7 @@ export class OpenChangedFilesCommand extends ActiveEditorCommand { } catch (ex) { Logger.error(ex, 'OpenChangedFilesCommand'); - return Messages.showGenericErrorMessage('Unable to open changed files'); + return Messages.showGenericErrorMessage('Unable to open all changed files'); } } }