Skip to content

Commit 182d895

Browse files
committed
fix: type
1 parent 39aa10a commit 182d895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/views/webview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type * as vscode from 'vscode'
22
import { Uri, commands } from 'vscode'
3-
import type { ListLogLine } from 'simple-git'
43

54
import { DiffProvider } from './diff/DiffProvider'
65

@@ -15,7 +14,7 @@ export class GitPanelViewProvider implements vscode.WebviewViewProvider {
1514
private storageService: StorageService
1615
private gitChangesProvider: DiffProvider
1716
public static readonly viewType = 'git-panel.history'
18-
private _commits: ListLogLine[] = []
17+
private _commits: Commit[] = []
1918

2019
constructor(
2120
private readonly _extensionUri: Uri,
@@ -52,7 +51,8 @@ export class GitPanelViewProvider implements vscode.WebviewViewProvider {
5251
...commit,
5352
authorName: commit.author_name,
5453
authorEmail: commit.author_email,
55-
}) as Commit)
54+
body: commit.body || '',
55+
}))
5656

5757
this.storageService.saveCommits(this._commits)
5858
}

0 commit comments

Comments
 (0)