Skip to content

Commit 2938cb6

Browse files
authored
Remove project icon (#538)
fixes #168
1 parent cfc8ee9 commit 2938cb6

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

examples/sample1/src/api.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
// Licensed under the MIT License.
33

44
import {
5-
Uri,
65
Disposable,
7-
MarkdownString,
86
Event,
7+
FileChangeType,
98
LogOutputChannel,
10-
ThemeIcon,
11-
Terminal,
9+
MarkdownString,
1210
TaskExecution,
11+
Terminal,
1312
TerminalOptions,
14-
FileChangeType,
13+
ThemeIcon,
14+
Uri,
1515
} from 'vscode';
1616

1717
/**
@@ -651,10 +651,6 @@ export interface PythonProject {
651651
*/
652652
readonly tooltip?: string | MarkdownString;
653653

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;
658654
}
659655

660656
/**
@@ -696,10 +692,6 @@ export interface PythonProjectCreator {
696692
*/
697693
readonly tooltip?: string | MarkdownString;
698694

699-
/**
700-
* The icon path for the Python project creator, which can be a string, Uri, or an object with light and dark theme paths.
701-
*/
702-
readonly iconPath?: IconPath;
703695

704696
/**
705697
* Creates a new Python project or projects.

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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)