We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e3d35 commit 6193213Copy full SHA for 6193213
1 file changed
src/features/views/treeViewItems.ts
@@ -213,8 +213,7 @@ export class ProjectItem implements ProjectTreeItem {
213
item.description = this.project.description;
214
item.tooltip = this.project.tooltip;
215
item.resourceUri = project.uri.fsPath.endsWith('.py') ? this.project.uri : undefined;
216
-
217
- item.iconPath = this.project.iconPath;
+ item.iconPath = this.project.iconPath ?? (project.uri.fsPath.endsWith('.py') ? ThemeIcon.File : undefined);
218
this.treeItem = item;
219
}
220
0 commit comments