File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -954,8 +954,9 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
954
954
icon = resourceOrEditor . getIcon ( ) ;
955
955
} else {
956
956
resource = URI . isUri ( resourceOrEditor ) ? resourceOrEditor : resourceOrEditor . resource ;
957
- label = this . customEditorLabelService . getName ( resource ) || basenameOrAuthority ( resource ) ;
958
- description = this . labelService . getUriLabel ( dirname ( resource ) , { relative : true } ) ;
957
+ const customLabel = this . customEditorLabelService . getName ( resource ) ;
958
+ label = customLabel || basenameOrAuthority ( resource ) ;
959
+ description = this . labelService . getUriLabel ( ! ! customLabel ? resource : dirname ( resource ) , { relative : true } ) ;
959
960
isDirty = this . workingCopyService . isDirty ( resource ) && ! this . filesConfigurationService . hasShortAutoSaveDelay ( resource ) ;
960
961
extraClasses = [ ] ;
961
962
}
You can’t perform that action at this time.
0 commit comments