mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 01:25:43 -05:00
Fixes a typescript bug
This commit is contained in:
@@ -14,7 +14,7 @@ export default class GitContentProvider implements TextDocumentContentProvider {
|
||||
const data = GitProvider.fromGitUri(uri);
|
||||
const fileName = data.originalFileName || data.fileName;
|
||||
try {
|
||||
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha);
|
||||
let text = await this.git.getVersionedFileText(fileName, data.repoPath, data.sha) as string;
|
||||
if (data.decoration) {
|
||||
text = `${data.decoration}\n${text}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user