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' ;
24import { InternalEnvironmentManager , InternalPackageManager } from '../../internal.api' ;
3- import { PythonEnvironment , IconPath , Package , PythonProject , EnvironmentGroupInfo } from '../../api' ;
4- import { removable } from './utils' ;
55import { isActivatableEnvironment } from '../common/activation' ;
6- import { EnvViewStrings } from '../../common/localize ' ;
6+ import { removable } from './utils ' ;
77
88export 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