Skip to content

Commit fd70510

Browse files
authored
Move description of env managers to tooltip (#180)
fixes #167
1 parent e580490 commit fd70510

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/features/views/treeViewItems.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export class EnvManagerTreeItem implements EnvTreeItem {
3131
constructor(public readonly manager: InternalEnvironmentManager) {
3232
const item = new TreeItem(manager.displayName, TreeItemCollapsibleState.Collapsed);
3333
item.contextValue = this.getContextValue();
34-
item.description = manager.description;
35-
item.tooltip = manager.tooltip;
34+
// Descriptions were a bit too visually noisy
35+
// https://github.com/microsoft/vscode-python-environments/issues/167
36+
item.description = undefined;
37+
item.tooltip = manager.tooltip ?? manager.description;
3638
item.iconPath = manager.iconPath;
3739
this.treeItem = item;
3840
}

src/managers/builtin/venvManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class VenvManager implements EnvironmentManager {
6161
public readonly log: LogOutputChannel,
6262
) {
6363
this.name = 'venv';
64-
this.displayName = 'venv Environments';
64+
this.displayName = 'venv';
6565
this.description = VenvManagerStrings.venvManagerDescription;
6666
this.tooltip = new MarkdownString(VenvManagerStrings.venvManagerDescription, true);
6767
this.preferredPackageManagerId = 'ms-python.python:pip';

0 commit comments

Comments
 (0)