We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63d084 commit 07b7969Copy full SHA for 07b7969
src/commands/diff.ts
@@ -9,10 +9,10 @@ import { useDiffTreeView } from '@/views/diff'
9
export default function diffCommand() {
10
const { getPreviousCommit } = useGitService()
11
const workspaceFolders = useWorkspaceFolders()
12
- const diffProvider = useDiffTreeView()
+ const { selectedCommitHash } = useDiffTreeView()
13
14
return async (fileInfo: { path: string, status: string }) => {
15
- const commit = (await diffProvider).selectedCommitHash.value
+ const commit = selectedCommitHash.value
16
if (!commit) {
17
return
18
}
0 commit comments