From a6f5fa59e452965cc4f547ef22c6d47f8ed4d038 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 2 Jan 2017 00:45:18 -0500 Subject: [PATCH] Fixes a typescript bug --- src/gitContentProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitContentProvider.ts b/src/gitContentProvider.ts index 4b39f46..3eac139 100644 --- a/src/gitContentProvider.ts +++ b/src/gitContentProvider.ts @@ -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}`; }