@@ -3,7 +3,7 @@ import { getGitRepositoryPath } from '../helpers/gitPaths';
33import * as historyUtil from '../helpers/historyUtils' ;
44import * as path from 'path' ;
55import * as tmp from 'tmp' ;
6- import { decode as htmlDecode } from 'he' ;
6+ import { decode as htmlDecode } from 'he' ;
77import * as logger from '../logger' ;
88import { formatDate } from '../helpers/logParser' ;
99import * as fs from 'fs' ;
@@ -114,7 +114,7 @@ async function onItemSelected(item: vscode.QuickPickItem, fileName: string, rela
114114 if ( thisFile !== 'fileUnavailable' && fs . existsSync ( fileName ) ) {
115115 itemPickList . push ( { label : 'Compare against workspace file' , description : '' } ) ;
116116 }
117- if ( previousFile !== 'fileUnavailable' && thisFile !== 'fileUnavailable' ) {
117+ if ( previousFile !== 'fileUnavailable' && thisFile !== 'fileUnavailable' ) {
118118 itemPickList . push ( { label : 'Compare against previous version' , description : '' } ) ;
119119 }
120120
@@ -168,10 +168,10 @@ function viewLog(details: any) {
168168
169169function diffFiles ( fileName : string , sourceFile : string , sourceSha1 : string , destinationFile : string , destinationSha1 : string ) {
170170 try {
171- const sourceFormattedSha1 = `(${ sourceSha1 . substring ( 0 , 7 ) } )` ;
172- const destinationFormattedSha1 = destinationSha1 !== '' ? `(${ destinationSha1 . substring ( 0 , 7 ) } )` : '' ;
171+ const sourceFormattedSha1 = `(${ sourceSha1 . substring ( 0 , 7 ) } )` ;
172+ const destinationFormattedSha1 = destinationSha1 !== '' ? `(${ destinationSha1 . substring ( 0 , 7 ) } )` : '' ;
173173 vscode . commands . executeCommand ( 'vscode.diff' , vscode . Uri . file ( sourceFile ) , vscode . Uri . file ( destinationFile ) ,
174- `${ path . basename ( fileName ) } ${ sourceFormattedSha1 } ↔ ${ path . basename ( fileName ) } ${ destinationFormattedSha1 } ` ) ;
174+ `${ path . basename ( fileName ) } ${ sourceFormattedSha1 } ↔ ${ path . basename ( fileName ) } ${ destinationFormattedSha1 } ` ) ;
175175 }
176176 catch ( error ) {
177177 logger . logError ( error ) ;
0 commit comments