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

Function isMultiProject

src/common/utils/multiProject.ts:5–7  ·  view source on GitHub ↗
(ws: WorkspaceMetadata)

Source from the content-addressed store, hash-verified

3import { PlatformPaths } from "@/common/utils/paths";
4
5export function isMultiProject(ws: WorkspaceMetadata): boolean {
6 return (ws.projects?.length ?? 0) > 1;
7}
8
9export function getProjects(ws: WorkspaceMetadata): ProjectRef[] {
10 if (ws.projects && ws.projects.length > 0) return ws.projects;

Callers 15

ProjectSidebarInnerFunction · 0.90
WorkspaceMenuBarFunction · 0.90
syncWorkspacesMethod · 0.90
updateGitStatusMethod · 0.90
removeMethod · 0.90
renameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected