提交 cc2acee6 编写于 作者: I isidor

fix root label

上级 982e3aa6
......@@ -218,8 +218,8 @@ export class FileLabel extends ResourceLabel {
this.setLabel({
resource,
name: (options && options.hideLabel) ? void 0 : paths.basename(resource.fsPath),
description: !hidePath ? getPathLabel(paths.dirname(resource.fsPath), rootProvider, this.environmentService) : void 0
name: (options && options.hideLabel) ? void 0 : paths.basename(resource.toString()),
description: !hidePath ? getPathLabel(paths.dirname(resource.toString()), rootProvider, this.environmentService) : void 0
}, options);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册