mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Simplify label and do not show the folder name
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user