MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getLegacyCodeLayoutMode

Function getLegacyCodeLayoutMode

src/main/store/module/app.ts:199–211  ·  view source on GitHub ↗
(
  source: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

197}
198
199function getLegacyCodeLayoutMode(
200 source: Record<string, unknown>,
201): SpaceLayoutMode {
202 if (
203 ['all-panels', 'list-editor', 'editor-only'].includes(
204 String(source.codeLayoutMode),
205 )
206 ) {
207 return source.codeLayoutMode as SpaceLayoutMode
208 }
209
210 return source.isSidebarHidden === true ? 'editor-only' : 'all-panels'
211}
212
213function getLegacyNotesLayoutMode(
214 source: Record<string, unknown>,

Callers 1

sanitizeAppStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected