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

Function getSidebarLayoutAccelerator

src/main/menu/main.ts:345–358  ·  view source on GitHub ↗
(
  targetLayout: MainMenuLayoutMode,
  currentLayout: MainMenuLayoutMode | null,
)

Source from the content-addressed store, hash-verified

343}
344
345function getSidebarLayoutAccelerator(
346 targetLayout: MainMenuLayoutMode,
347 currentLayout: MainMenuLayoutMode | null,
348) {
349 if (currentLayout === 'all-panels' && targetLayout === 'list-editor') {
350 return 'Alt+CommandOrControl+B'
351 }
352
353 if (currentLayout !== 'all-panels' && targetLayout === 'all-panels') {
354 return 'Alt+CommandOrControl+B'
355 }
356
357 return undefined
358}
359
360function createLayoutMenuItems(context: MainMenuContext): MenuConfig[] {
361 if (!context.view.layoutModes.length || !context.view.layoutMode) {

Callers 1

createLayoutMenuItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected