Browse Source

Fixes typo

main
Eric Amodio 6 years ago
parent
commit
29e48fa1f8
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/commands/diffDirectory.ts
  2. +3
    -3
      src/quickPicks/commitDetails.ts

+ 3
- 3
src/commands/diffDirectory.ts View File

@ -9,7 +9,7 @@ import { Logger } from '../logger';
import { Messages } from '../messages';
import { BranchesAndTagsQuickPick, CommandQuickPickItem } from '../quickPicks';
export interface DiffDirectoryCommandCommandArgs {
export interface DiffDirectoryCommandArgs {
ref1?: string;
ref2?: string;
}
@ -20,7 +20,7 @@ export class DiffDirectoryCommand extends ActiveEditorCommand {
super([Commands.DiffDirectory, Commands.ExternalDiffAll, Commands.ExplorersOpenDirectoryDiff, Commands.ExplorersOpenDirectoryDiffWithWorking]);
}
protected async preExecute(context: CommandContext, args: DiffDirectoryCommandCommandArgs = {}): Promise<any> {
protected async preExecute(context: CommandContext, args: DiffDirectoryCommandArgs = {}): Promise<any> {
switch (context.command) {
case Commands.ExternalDiffAll:
args.ref1 = 'HEAD';
@ -45,7 +45,7 @@ export class DiffDirectoryCommand extends ActiveEditorCommand {
return this.execute(context.editor, context.uri, args);
}
async execute(editor?: TextEditor, uri?: Uri, args: DiffDirectoryCommandCommandArgs = {}): Promise<any> {
async execute(editor?: TextEditor, uri?: Uri, args: DiffDirectoryCommandArgs = {}): Promise<any> {
uri = getCommandUri(uri, editor);
let progressCancellation: CancellationTokenSource | undefined;

+ 3
- 3
src/quickPicks/commitDetails.ts View File

@ -1,7 +1,7 @@
'use strict';
import { Arrays, Iterables, Strings } from '../system';
import { commands, QuickPickOptions, TextDocumentShowOptions, Uri, window } from 'vscode';
import { Commands, CopyMessageToClipboardCommandArgs, CopyShaToClipboardCommandArgs, DiffDirectoryCommandCommandArgs, DiffWithPreviousCommandArgs, ShowQuickCommitDetailsCommandArgs, StashApplyCommandArgs, StashDeleteCommandArgs } from '../commands';
import { Commands, CopyMessageToClipboardCommandArgs, CopyShaToClipboardCommandArgs, DiffDirectoryCommandArgs, DiffWithPreviousCommandArgs, ShowQuickCommitDetailsCommandArgs, StashApplyCommandArgs, StashDeleteCommandArgs } from '../commands';
import { CommandQuickPickItem, getQuickPickIgnoreFocusOut, KeyCommandQuickPickItem, OpenFileCommandQuickPickItem, OpenFilesCommandQuickPickItem, QuickPickItem, ShowCommitInResultsQuickPickItem } from './common';
import { GlyphChars } from '../constants';
import { Container } from '../container';
@ -149,7 +149,7 @@ export class CommitDetailsQuickPick {
{
ref1: commit.previousFileSha,
ref2: commit.sha
} as DiffDirectoryCommandCommandArgs
} as DiffDirectoryCommandArgs
])
);
@ -160,7 +160,7 @@ export class CommitDetailsQuickPick {
uri,
{
ref1: commit.sha
} as DiffDirectoryCommandCommandArgs
} as DiffDirectoryCommandArgs
])
);

Loading…
Cancel
Save