@@ -40,6 +40,7 @@ import { ActionBar, ActionItem } from 'vs/base/browser/ui/actionbar/actionbar';
40
40
import { Action } from 'vs/base/common/actions' ;
41
41
import URI from 'vs/base/common/uri' ;
42
42
import { IdGenerator } from 'vs/base/common/idGenerator' ;
43
+ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding' ;
43
44
44
45
const $ = dom . $ ;
45
46
@@ -710,6 +711,7 @@ export class QuickInputService extends Component implements IQuickInputService {
710
711
@IPartService private partService : IPartService ,
711
712
@IQuickOpenService private quickOpenService : IQuickOpenService ,
712
713
@IEditorGroupsService private editorGroupService : IEditorGroupsService ,
714
+ @IKeybindingService private keybindingService : IKeybindingService ,
713
715
@IContextKeyService contextKeyService : IContextKeyService ,
714
716
@IThemeService themeService : IThemeService
715
717
) {
@@ -1037,6 +1039,9 @@ export class QuickInputService extends Component implements IQuickInputService {
1037
1039
this . ui . list . matchOnDetail = false ;
1038
1040
this . ui . ignoreFocusOut = false ;
1039
1041
1042
+ const keybinding = this . keybindingService . lookupKeybinding ( BackAction . ID ) ;
1043
+ backButton . tooltip = keybinding ? localize ( 'quickInput.backWithKeybinding' , "Back ({0})" , keybinding . getLabel ( ) ) : localize ( 'quickInput.back' , "Back" ) ;
1044
+
1040
1045
this . inQuickOpen ( 'quickInput' , true ) ;
1041
1046
1042
1047
this . ui . container . style . display = '' ;
0 commit comments