@@ -56,6 +56,7 @@ import { Registry } from 'vs/platform/registry/common/platform';
56
56
import { ASK_QUICK_QUESTION_ACTION_ID } from 'vs/workbench/contrib/chat/browser/actions/chatQuickInputActions' ;
57
57
import { IQuickChatService } from 'vs/workbench/contrib/chat/browser/chat' ;
58
58
import { ILogService } from 'vs/platform/log/common/log' ;
59
+ import { ICustomEditorLabelService } from 'vs/workbench/services/editor/common/customEditorLabelService' ;
59
60
60
61
interface IAnythingQuickPickItem extends IPickerQuickAccessItem , IQuickPickItemWithResource { }
61
62
@@ -163,7 +164,8 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
163
164
@IQuickInputService private readonly quickInputService : IQuickInputService ,
164
165
@IKeybindingService private readonly keybindingService : IKeybindingService ,
165
166
@IQuickChatService private readonly quickChatService : IQuickChatService ,
166
- @ILogService private readonly logService : ILogService
167
+ @ILogService private readonly logService : ILogService ,
168
+ @ICustomEditorLabelService private readonly customEditorLabelService : ICustomEditorLabelService
167
169
) {
168
170
super ( AnythingQuickAccessProvider . PREFIX , {
169
171
canAcceptInBackground : true ,
@@ -952,7 +954,7 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
952
954
icon = resourceOrEditor . getIcon ( ) ;
953
955
} else {
954
956
resource = URI . isUri ( resourceOrEditor ) ? resourceOrEditor : resourceOrEditor . resource ;
955
- label = basenameOrAuthority ( resource ) ;
957
+ label = this . customEditorLabelService . getName ( resource ) || basenameOrAuthority ( resource ) ;
956
958
description = this . labelService . getUriLabel ( dirname ( resource ) , { relative : true } ) ;
957
959
isDirty = this . workingCopyService . isDirty ( resource ) && ! this . filesConfigurationService . hasShortAutoSaveDelay ( resource ) ;
958
960
extraClasses = [ ] ;
0 commit comments