|
@ -4,7 +4,7 @@ import { commands, QuickPickOptions, TextDocumentShowOptions, Uri, window } from |
|
|
import { Commands, CopyMessageToClipboardCommandArgs, CopyShaToClipboardCommandArgs, DiffDirectoryCommandCommandArgs, DiffWithPreviousCommandArgs, ShowQuickCommitDetailsCommandArgs, StashApplyCommandArgs, StashDeleteCommandArgs } from '../commands'; |
|
|
import { Commands, CopyMessageToClipboardCommandArgs, CopyShaToClipboardCommandArgs, DiffDirectoryCommandCommandArgs, DiffWithPreviousCommandArgs, ShowQuickCommitDetailsCommandArgs, StashApplyCommandArgs, StashDeleteCommandArgs } from '../commands'; |
|
|
import { CommandQuickPickItem, getQuickPickIgnoreFocusOut, KeyCommandQuickPickItem, OpenFileCommandQuickPickItem, OpenFilesCommandQuickPickItem, QuickPickItem } from './common'; |
|
|
import { CommandQuickPickItem, getQuickPickIgnoreFocusOut, KeyCommandQuickPickItem, OpenFileCommandQuickPickItem, OpenFilesCommandQuickPickItem, QuickPickItem } from './common'; |
|
|
import { GlyphChars } from '../constants'; |
|
|
import { GlyphChars } from '../constants'; |
|
|
import { getGitStatusIcon, GitCommit, GitLog, GitLogCommit, GitService, GitStashCommit, GitStatusFile, GitStatusFileStatus, GitUri, IGitCommitInfo, IGitStatusFile, RemoteResource } from '../gitService'; |
|
|
|
|
|
|
|
|
import { getGitStatusOcticon, GitCommit, GitLog, GitLogCommit, GitService, GitStashCommit, GitStatusFile, GitStatusFileStatus, GitUri, IGitCommitInfo, IGitStatusFile, RemoteResource } from '../gitService'; |
|
|
import { Keyboard, KeyNoopCommand, Keys } from '../keyboard'; |
|
|
import { Keyboard, KeyNoopCommand, Keys } from '../keyboard'; |
|
|
import { OpenRemotesCommandQuickPickItem } from './remotes'; |
|
|
import { OpenRemotesCommandQuickPickItem } from './remotes'; |
|
|
import * as moment from 'moment'; |
|
|
import * as moment from 'moment'; |
|
@ -20,7 +20,7 @@ export class CommitWithFileStatusQuickPickItem extends OpenFileCommandQuickPickI |
|
|
status: GitStatusFileStatus; |
|
|
status: GitStatusFileStatus; |
|
|
|
|
|
|
|
|
constructor(commit: GitCommit, status: IGitStatusFile) { |
|
|
constructor(commit: GitCommit, status: IGitStatusFile) { |
|
|
const icon = getGitStatusIcon(status.status); |
|
|
|
|
|
|
|
|
const octicon = getGitStatusOcticon(status.status); |
|
|
const description = GitStatusFile.getFormattedDirectory(status, true); |
|
|
const description = GitStatusFile.getFormattedDirectory(status, true); |
|
|
|
|
|
|
|
|
let sha; |
|
|
let sha; |
|
@ -35,7 +35,7 @@ export class CommitWithFileStatusQuickPickItem extends OpenFileCommandQuickPickI |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
super(GitService.toGitContentUri(sha, shortSha, status.fileName, commit.repoPath, status.originalFileName), { |
|
|
super(GitService.toGitContentUri(sha, shortSha, status.fileName, commit.repoPath, status.originalFileName), { |
|
|
label: `${Strings.pad(icon, 4, 2)} ${path.basename(status.fileName)}`, |
|
|
|
|
|
|
|
|
label: `${Strings.pad(octicon, 4, 2)} ${path.basename(status.fileName)}`, |
|
|
description: description |
|
|
description: description |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|