import { IGitCompareFileCommandHandler } from '../../commandHandlers/types' ; import { FileCommitDetails } from '../../common/types' ; import { BaseFileCommitCommand } from '../baseFileCommitCommand' ; export class SelectFileForComparison extends BaseFileCommitCommand { constructor ( fileCommit , private handler ) { super ( fileCommit ) ; this . setTitle ( '$(git-compare) Select for comparison' ) ; this . setCommand ( 'git.commit.FileEntry.selectForComparison' ) ; this . setCommandArguments ( [ fileCommit ] ) ; } public async preExecute ( ) { return false ; } public execute ( ) { this . handler . select ( this . data ) ; } }