11'use strict' ;
2- import * as paths from 'path' ;
32import { commands , Range , TextEditor , Uri , window } from 'vscode' ;
43import { GlyphChars } from '../constants' ;
54import { Container } from '../container' ;
@@ -89,7 +88,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
8988 const npc = new CommandQuickPickItem (
9089 {
9190 label : '$(arrow-right) Show Next Commits' ,
92- description : `${ Strings . pad ( GlyphChars . Dash , 2 , 3 ) } shows ${ args . log . maxCount } newer commits`
91+ description : `shows ${ args . log . maxCount } newer commits`
9392 } ,
9493 Commands . ShowQuickFileHistory ,
9594 [ gitUri , commandArgs ]
@@ -101,9 +100,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
101100 previousPageCommand = new CommandQuickPickItem (
102101 {
103102 label : '$(arrow-left) Show Previous Commits' ,
104- description : `${ Strings . pad ( GlyphChars . Dash , 2 , 3 ) } shows ${
105- args . log . maxCount
106- } older commits`
103+ description : `shows ${ args . log . maxCount } older commits`
107104 } ,
108105 Commands . ShowQuickFileHistory ,
109106 [ new GitUri ( uri , last ) , commandArgs ]
@@ -116,9 +113,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
116113 const currentCommand = new CommandQuickPickItem (
117114 {
118115 label : `go back ${ GlyphChars . ArrowBack } ` ,
119- description : `${ Strings . pad ( GlyphChars . Dash , 2 , 3 ) } to history of ${
120- GlyphChars . Space
121- } $(file-text) ${ paths . basename ( gitUri . fsPath ) } ${
116+ description : `to history of ${ gitUri . getFormattedPath ( ) } ${
122117 args . reference
123118 ? ` from ${ GlyphChars . Space } ${ icon } ${ args . reference . name } `
124119 : gitUri . sha
@@ -141,7 +136,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
141136 ? new CommandQuickPickItem (
142137 {
143138 label : '$(sync) Show All Commits' ,
144- description : ` ${ Strings . pad ( GlyphChars . Dash , 2 , 3 ) } this may take a while`
139+ description : ' this may take a while'
145140 } ,
146141 Commands . ShowQuickFileHistory ,
147142 [ uri , { ...args , log : undefined , maxCount : 0 } ]
@@ -174,13 +169,13 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand {
174169 if ( pick instanceof CommandQuickPickItem ) return pick . execute ( ) ;
175170
176171 const commandArgs : ShowQuickCommitFileDetailsCommandArgs = {
177- commit : pick . commit ,
172+ commit : pick . item ,
178173 fileLog : args . log ,
179- sha : pick . commit . sha ,
174+ sha : pick . item . sha ,
180175 goBackCommand : currentCommand
181176 } ;
182177
183- return commands . executeCommand ( Commands . ShowQuickCommitFileDetails , pick . commit . toGitUri ( ) , commandArgs ) ;
178+ return commands . executeCommand ( Commands . ShowQuickCommitFileDetails , pick . item . toGitUri ( ) , commandArgs ) ;
184179 }
185180 catch ( ex ) {
186181 Logger . error ( ex , 'ShowQuickFileHistoryCommand' ) ;
0 commit comments