Skip to content

Commit 73483ca

Browse files
committed
feat: inherit VS Code file icons in SAS Content and Server
1 parent 4cfbc7c commit 73483ca

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

client/src/components/ContentNavigator/ContentDataProvider.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
TabInputText,
1919
TextDocument,
2020
TextDocumentContentProvider,
21-
ThemeIcon,
2221
TreeDataProvider,
2322
TreeDragAndDropController,
2423
TreeItem,
@@ -230,6 +229,7 @@ class ContentDataProvider
230229
iconPath: this.iconPathForItem(item),
231230
id: item.uid,
232231
label: item.name,
232+
resourceUri: uri,
233233
};
234234
}
235235

@@ -698,7 +698,7 @@ class ContentDataProvider
698698

699699
private iconPathForItem(
700700
item: ContentItem,
701-
): ThemeIcon | { light: Uri; dark: Uri } {
701+
): undefined | { light: Uri; dark: Uri } {
702702
const isContainer = getIsContainer(item);
703703
let icon = "";
704704
if (isContainer) {
@@ -723,11 +723,6 @@ class ContentDataProvider
723723
icon = "folder";
724724
break;
725725
}
726-
} else {
727-
const extension = item.name.split(".").pop().toLowerCase();
728-
if (extension === "sas") {
729-
icon = "sasProgramFile";
730-
}
731726
}
732727

733728
return icon !== ""
@@ -738,7 +733,7 @@ class ContentDataProvider
738733
`icons/light/${icon}Light.svg`,
739734
),
740735
}
741-
: ThemeIcon.File;
736+
: undefined;
742737
}
743738
}
744739

0 commit comments

Comments
 (0)