MCPcopy Index your code
hub / github.com/coder/mux / getProjectDisplayName

Function getProjectDisplayName

src/common/utils/subProjects.ts:112–117  ·  view source on GitHub ↗
(projectPath: string, projectConfig?: ProjectConfig)

Source from the content-addressed store, hash-verified

110}
111
112export function getProjectDisplayName(projectPath: string, projectConfig?: ProjectConfig): string {
113 const displayName = projectConfig?.displayName?.trim();
114 return displayName && displayName.length > 0
115 ? displayName
116 : PlatformPaths.getProjectName(projectPath);
117}
118
119export function formatProjectHierarchyLabel(
120 projectPath: string,

Callers 3

ProjectSidebarInnerFunction · 0.90
getSubProjectsForParentFunction · 0.85

Calls 1

getProjectNameMethod · 0.45

Tested by

no test coverage detected