MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / makeNativeLabel

Function makeNativeLabel

frontend/util/platformutil.ts:34–53  ·  view source on GitHub ↗
(isDirectory: boolean)

Source from the content-addressed store, hash-verified

32}
33
34export function makeNativeLabel(isDirectory: boolean) {
35 let managerName: string;
36 if (!isDirectory) {
37 managerName = "Default Application";
38 } else if (PLATFORM === PlatformMacOS) {
39 managerName = "Finder";
40 } else if (PLATFORM == PlatformWindows) {
41 managerName = "Explorer";
42 } else {
43 managerName = "File Manager";
44 }
45
46 let fileAction: string;
47 if (isDirectory) {
48 fileAction = "Reveal";
49 } else {
50 fileAction = "Open File";
51 }
52 return `${fileAction} in ${managerName}`;
53}

Callers 1

addOpenMenuItemsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected