MCPcopy
hub / github.com/coder/mux / isDevcontainerRuntime

Function isDevcontainerRuntime

src/common/types/runtime.ts:269–273  ·  view source on GitHub ↗
(
  config: RuntimeConfig | undefined
)

Source from the content-addressed store, hash-verified

267 * Type guard to check if a runtime config is Devcontainer
268 */
269export function isDevcontainerRuntime(
270 config: RuntimeConfig | undefined
271): config is Extract<RuntimeConfig, { type: "devcontainer" }> {
272 return config?.type === "devcontainer";
273}
274
275/**
276 * Type guard to check if a runtime config uses worktree semantics.

Callers 12

getRuntimeInfoFunction · 0.90
WorkspaceMenuBarFunction · 0.90
onPassiveRuntimeEligibleFunction · 0.90
openInEditorFunction · 0.90
syncWorkspacesMethod · 0.90
updateRuntimeStatusesMethod · 0.90
useOpenTerminalFunction · 0.90
openInEditorMethod · 0.90
openNativeMethod · 0.90
getRuntimeTypeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected