Skip to content

Commit 6d7349e

Browse files
committed
fix tests
1 parent eefe310 commit 6d7349e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/views/treeViewItems.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ export class PythonEnvTreeItem implements EnvTreeItem {
138138
if (disambiguationSuffix) {
139139
descriptionParts.push(disambiguationSuffix);
140140
}
141-
item.description = descriptionParts.length > 0 ? descriptionParts.join(' ') : undefined;
141+
const computedDescription = descriptionParts.length > 0 ? descriptionParts.join(' ') : undefined;
142142

143-
// Replace description with error message for broken environments
144-
item.description = isBroken ? environment.error : environment.description;
143+
// Use error message for broken environments, otherwise use computed description
144+
item.description = isBroken ? environment.error : computedDescription;
145145
item.tooltip = isBroken ? environment.error : tooltip;
146146
// Show warning icon for broken environments
147147
item.iconPath = isBroken ? new ThemeIcon('warning') : environment.iconPath;

0 commit comments

Comments
 (0)