File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
1212import { ThrottledDelayer } from 'vs/base/common/async' ;
1313import { getWorkspaceSymbols , IWorkspaceSymbol , IWorkspaceSymbolProvider } from 'vs/workbench/contrib/search/common/search' ;
1414import { SymbolKinds , SymbolTag } from 'vs/editor/common/modes' ;
15- import { basename } from 'vs/base/common/resources' ;
1615import { ILabelService } from 'vs/platform/label/common/label' ;
1716import { Schemas } from 'vs/base/common/network' ;
1817import { IOpenerService } from 'vs/platform/opener/common/opener' ;
@@ -85,10 +84,11 @@ export class SymbolsQuickAccessProvider extends PickerQuickAccessProvider<ISymbo
8584
8685 let containerLabel : string | undefined = undefined ;
8786 if ( symbol . location . uri ) {
87+ const containerPath = this . labelService . getUriLabel ( symbol . location . uri , { relative : true } ) ;
8888 if ( symbol . containerName ) {
89- containerLabel = `${ symbol . containerName } — ${ basename ( symbol . location . uri ) } ` ;
89+ containerLabel = `${ symbol . containerName } • ${ containerPath } ` ;
9090 } else {
91- containerLabel = this . labelService . getUriLabel ( symbol . location . uri , { relative : true } ) ;
91+ containerLabel = containerPath ;
9292 }
9393 }
9494
You can’t perform that action at this time.
0 commit comments