Skip to content

Commit 7acaf5e

Browse files
committed
remove project icon from view and API
1 parent f622704 commit 7acaf5e

2 files changed

Lines changed: 4 additions & 16 deletions

File tree

src/api.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -650,11 +650,6 @@ export interface PythonProject {
650650
* The tooltip for the Python project, which can be a string or a Markdown string.
651651
*/
652652
readonly tooltip?: string | MarkdownString;
653-
654-
/**
655-
* The icon path for the Python project, which can be a string, Uri, or an object with light and dark theme paths.
656-
*/
657-
readonly iconPath?: IconPath;
658653
}
659654

660655
/**
@@ -701,11 +696,6 @@ export interface PythonProjectCreator {
701696
*/
702697
readonly tooltip?: string | MarkdownString;
703698

704-
/**
705-
* The icon path for the Python project creator, which can be a string, Uri, or an object with light and dark theme paths.
706-
*/
707-
readonly iconPath?: IconPath;
708-
709699
/**
710700
* Creates a new Python project(s) or, if files are not a project, returns Uri(s) to the created files.
711701
* Anything that needs its own python environment constitutes a project.

src/features/views/treeViewItems.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { TreeItem, TreeItemCollapsibleState, MarkdownString, Command, ThemeIcon } from 'vscode';
1+
import { Command, MarkdownString, ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
2+
import { EnvironmentGroupInfo, IconPath, Package, PythonEnvironment, PythonProject } from '../../api';
3+
import { EnvViewStrings } from '../../common/localize';
24
import { InternalEnvironmentManager, InternalPackageManager } from '../../internal.api';
3-
import { PythonEnvironment, IconPath, Package, PythonProject, EnvironmentGroupInfo } from '../../api';
4-
import { removable } from './utils';
55
import { isActivatableEnvironment } from '../common/activation';
6-
import { EnvViewStrings } from '../../common/localize';
6+
import { removable } from './utils';
77

88
export enum EnvTreeItemKind {
99
manager = 'python-env-manager',
@@ -213,7 +213,6 @@ export class ProjectItem implements ProjectTreeItem {
213213
item.description = this.project.description;
214214
item.tooltip = this.project.tooltip;
215215
item.resourceUri = project.uri.fsPath.endsWith('.py') ? this.project.uri : undefined;
216-
item.iconPath = this.project.iconPath ?? (project.uri.fsPath.endsWith('.py') ? ThemeIcon.File : undefined);
217216
this.treeItem = item;
218217
}
219218

@@ -233,7 +232,6 @@ export class GlobalProjectItem implements ProjectTreeItem {
233232
item.contextValue = 'python-workspace';
234233
item.description = 'Global Python environment';
235234
item.tooltip = 'Global Python environment';
236-
item.iconPath = new ThemeIcon('globe');
237235
this.treeItem = item;
238236
}
239237
}

0 commit comments

Comments
 (0)