File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments