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

Function defaultWorkspaceExtension

site/src/utils/workspace.tsx:135–144  ·  view source on GitHub ↗
(
	__startDate?: dayjs.Dayjs,
)

Source from the content-addressed store, hash-verified

133};
134
135export const defaultWorkspaceExtension = (
136 __startDate?: dayjs.Dayjs,
137): TypesGen.PutExtendWorkspaceRequest => {
138 const now = __startDate ? dayjs(__startDate) : dayjs();
139 const fourHoursFromNow = now.add(4, "hours").utc();
140
141 return {
142 deadline: fourHoursFromNow.format(),
143 };
144};
145
146export const getDisplayWorkspaceTemplateName = (
147 workspace: TypesGen.Workspace,

Callers 1

workspace.test.tsFile · 0.90

Calls 1

addMethod · 0.45

Tested by

no test coverage detected