mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-18 01:35:36 -05:00
Refactors GitService to mostly use GitUris
This commit is contained in:
@@ -15,7 +15,7 @@ export class GitContentProvider implements TextDocumentContentProvider {
|
||||
const data = GitService.fromGitContentUri(uri);
|
||||
const fileName = data.originalFileName || data.fileName;
|
||||
try {
|
||||
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha) as string;
|
||||
let text = await this.git.getVersionedFileText(data.repoPath, fileName, data.sha) as string;
|
||||
if (data.decoration) {
|
||||
text = `${data.decoration}\n${text}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user