Fixes #34 - Open file should open the selected version of the file

Renames current Open File command to  Open Working File
Renames current Open Files command to  Open Working Files
Adds new Open File command to open the commit version of the file
Adds new Open Files command to open the commit version of the files
This commit is contained in:
Eric Amodio
2017-03-01 01:26:27 -05:00
parent a98f400375
commit 74845f979b
5 changed files with 70 additions and 23 deletions

View File

@@ -23,7 +23,7 @@ export class GitUri extends Uri {
this.offset = 0;
if (uri.scheme === DocumentSchemes.Git) {
const data = GitProvider.fromGitUri(uri);
const data = GitProvider.fromGitContentUri(uri);
base._fsPath = data.originalFileName || data.fileName;
this.offset = (data.decoration && data.decoration.split('\n').length) || 0;
@@ -72,10 +72,10 @@ export interface IGitCommitInfo {
}
export interface IGitUriData {
repoPath: string;
fileName: string;
originalFileName?: string;
sha: string;
index: number;
fileName: string;
repoPath: string;
originalFileName?: string;
index?: number;
decoration?: string;
}