mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix #135245
This commit is contained in:
parent
b43aa6c4ea
commit
96c7611280
|
@ -389,6 +389,7 @@ class ResourceRenderer implements ICompressibleTreeRenderer<ISCMResource | IReso
|
|||
private labels: ResourceLabels,
|
||||
private actionViewItemProvider: IActionViewItemProvider,
|
||||
private actionRunner: ActionRunner,
|
||||
@ILabelService private labelService: ILabelService,
|
||||
@ISCMViewService private scmViewService: ISCMViewService,
|
||||
@IThemeService private themeService: IThemeService
|
||||
) {
|
||||
|
@ -482,14 +483,15 @@ class ResourceRenderer implements ICompressibleTreeRenderer<ISCMResource | IReso
|
|||
const compressed = node.element as ICompressedTreeNode<IResourceNode<ISCMResource, ISCMResourceGroup>>;
|
||||
const folder = compressed.elements[compressed.elements.length - 1];
|
||||
|
||||
const label = compressed.elements.map(e => e.name).join('/');
|
||||
const label = compressed.elements.map(e => e.name);
|
||||
const fileKind = FileKind.FOLDER;
|
||||
|
||||
const matches = createMatches(node.filterData as FuzzyScore | undefined);
|
||||
template.fileLabel.setResource({ resource: folder.uri, name: label }, {
|
||||
fileDecorations: { colors: false, badges: true },
|
||||
fileKind,
|
||||
matches
|
||||
matches,
|
||||
separator: this.labelService.getSeparator(folder.uri.scheme)
|
||||
});
|
||||
|
||||
template.actionBar.clear();
|
||||
|
|
Loading…
Reference in a new issue