Skip to content

Commit b792db2

Browse files
author
Benjamin Pasero
committed
quick access - always show relative path in symbol picker (fix microsoft#76661)
1 parent 0674210 commit b792db2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/contrib/search/browser/symbolsQuickAccess.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
1212
import { ThrottledDelayer } from 'vs/base/common/async';
1313
import { getWorkspaceSymbols, IWorkspaceSymbol, IWorkspaceSymbolProvider } from 'vs/workbench/contrib/search/common/search';
1414
import { SymbolKinds, SymbolTag } from 'vs/editor/common/modes';
15-
import { basename } from 'vs/base/common/resources';
1615
import { ILabelService } from 'vs/platform/label/common/label';
1716
import { Schemas } from 'vs/base/common/network';
1817
import { 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

0 commit comments

Comments
 (0)