mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-19 01:35:37 -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:
@@ -12,7 +12,7 @@ export default class GitContentProvider implements TextDocumentContentProvider {
|
||||
constructor(context: ExtensionContext, private git: GitProvider) { }
|
||||
|
||||
async provideTextDocumentContent(uri: Uri): Promise<string> {
|
||||
const data = GitProvider.fromGitUri(uri);
|
||||
const data = GitProvider.fromGitContentUri(uri);
|
||||
const fileName = data.originalFileName || data.fileName;
|
||||
try {
|
||||
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha) as string;
|
||||
|
||||
Reference in New Issue
Block a user