mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-18 01:35:36 -05:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user