@tutti-os/workspace-file-manager 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1738,14 +1738,12 @@ function createWorkspaceFileManagerService() {
1738
1738
 
1739
1739
  // src/services/workspaceFileEntryIconPolicy.ts
1740
1740
  var defaultApplicationIconExtensions = /* @__PURE__ */ new Set([
1741
- "7z",
1742
1741
  "ai",
1743
1742
  "dmg",
1744
1743
  "doc",
1745
1744
  "docx",
1746
1745
  "eps",
1747
1746
  "fig",
1748
- "gz",
1749
1747
  "indd",
1750
1748
  "key",
1751
1749
  "numbers",
@@ -1753,22 +1751,26 @@ var defaultApplicationIconExtensions = /* @__PURE__ */ new Set([
1753
1751
  "ods",
1754
1752
  "odt",
1755
1753
  "pages",
1756
- "pdf",
1757
1754
  "pkg",
1758
1755
  "ppt",
1759
1756
  "pptx",
1760
1757
  "psd",
1761
- "rar",
1762
1758
  "rtf",
1763
1759
  "sketch",
1764
- "tar",
1765
- "tgz",
1766
1760
  "xd",
1767
1761
  "xls",
1768
- "xlsx",
1762
+ "xlsx"
1763
+ ]);
1764
+ var archiveIconExtensions = /* @__PURE__ */ new Set([
1765
+ "7z",
1766
+ "gz",
1767
+ "rar",
1768
+ "tar",
1769
+ "tgz",
1769
1770
  "xz",
1770
1771
  "zip"
1771
1772
  ]);
1773
+ var extensionDocumentIconExtensions = /* @__PURE__ */ new Set(["pdf"]);
1772
1774
  function shouldResolveWorkspaceFileEntryIcon(entry, options = {}) {
1773
1775
  return options.includeImageThumbnails && shouldResolveWorkspaceFileImageThumbnail(entry) || isWorkspaceApplicationBundle(entry) || resolveWorkspaceFileDefaultApplicationIconExtension(entry) !== null;
1774
1776
  }
@@ -1777,7 +1779,13 @@ function shouldUseWorkspaceFileExtensionDocumentIcon(entry) {
1777
1779
  return false;
1778
1780
  }
1779
1781
  const visualKind = resolveWorkspaceFileVisualKind(entry);
1780
- return visualKind === "code" || visualKind === "markdown" || classifyWorkspaceFilePreviewKind(entry) === "text";
1782
+ const extension = resolveWorkspaceFileExtension(entry.name).toLowerCase();
1783
+ return visualKind === "code" || visualKind === "markdown" || extensionDocumentIconExtensions.has(extension) || classifyWorkspaceFilePreviewKind(entry) === "text";
1784
+ }
1785
+ function shouldUseWorkspaceFileArchiveIcon(entry) {
1786
+ return entry.kind === "file" && archiveIconExtensions.has(
1787
+ resolveWorkspaceFileExtension(entry.name).toLowerCase()
1788
+ );
1781
1789
  }
1782
1790
  function isWorkspaceApplicationBundle(entry) {
1783
1791
  return entry.kind !== "file" && entry.name.trim().toLowerCase().endsWith(".app");
@@ -1827,8 +1835,9 @@ export {
1827
1835
  createWorkspaceFileManagerService,
1828
1836
  shouldResolveWorkspaceFileEntryIcon,
1829
1837
  shouldUseWorkspaceFileExtensionDocumentIcon,
1838
+ shouldUseWorkspaceFileArchiveIcon,
1830
1839
  isWorkspaceApplicationBundle,
1831
1840
  resolveWorkspaceFileDefaultApplicationIconExtension,
1832
1841
  resolveWorkspaceFileEntryIconCacheKey
1833
1842
  };
1834
- //# sourceMappingURL=chunk-CSFEGRX7.js.map
1843
+ //# sourceMappingURL=chunk-G2T6CZ2T.js.map