MCPcopy Index your code
hub / github.com/coder/coder / splitEmbeddedAndExternalApps

Function splitEmbeddedAndExternalApps

site/src/pages/TaskPage/TaskApps.tsx:239–254  ·  view source on GitHub ↗
(
	apps: WorkspaceAppWithAgent[],
)

Source from the content-addressed store, hash-verified

237};
238
239function splitEmbeddedAndExternalApps(
240 apps: WorkspaceAppWithAgent[],
241): [WorkspaceAppWithAgent[], WorkspaceAppWithAgent[]] {
242 const embeddedApps = [];
243 const externalApps = [];
244
245 for (const app of apps) {
246 if (app.external) {
247 externalApps.push(app);
248 } else {
249 embeddedApps.push(app);
250 }
251 }
252
253 return [embeddedApps, externalApps];
254}

Callers 1

TaskAppsFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected