mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Simplify label and do not show the folder name
This commit is contained in:
parent
f7653eb02b
commit
6bee7fc45d
|
@ -45,9 +45,9 @@ class PackageJSON extends TreeItem {
|
|||
|
||||
static getLabel(folderName: string, relativePath: string): string {
|
||||
if (relativePath.length > 0) {
|
||||
return path.join(folderName, relativePath, packageName);
|
||||
return path.join(relativePath, packageName);
|
||||
}
|
||||
return path.join(folderName, packageName);
|
||||
return packageName;
|
||||
}
|
||||
|
||||
constructor(folder: Folder, relativePath: string) {
|
||||
|
|
Loading…
Reference in a new issue