File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ const Entry = styled.div`
7070 align-items: center;
7171 font-size: 0.875rem;
7272 padding: 0.25rem 0.75rem;
73+ min-height: 1.5rem;
7374 cursor: pointer;
7475
7576 ${ ( { isActive } ) =>
Original file line number Diff line number Diff line change 11import preferenceActions from './actions' ;
22import { preferencesSelector } from './selectors' ;
3+ import { singleSandboxSelector } from '../entities/sandboxes/selectors' ;
34import sandboxActions from '../entities/sandboxes/actions' ;
45import viewActions from '../view/actions' ;
56import modalActions from '../modal/actions' ;
7+ import moduleActions from '../entities/sandboxes/modules/actions' ;
68import {
79 devToolsOpenSelector ,
810 workspaceHiddenSelector ,
@@ -135,4 +137,16 @@ export const KEYBINDINGS = {
135137 dispatch ( modalActions . openSearchDependencies ( id ) ) ;
136138 } ,
137139 } ,
140+
141+ 'source.modules.prettify' : {
142+ title : 'Prettify Current File' ,
143+ type : 'Source' ,
144+ bindings : [ ] ,
145+ action : ( { id } ) => ( dispatch : Function , getState : Function ) => {
146+ const sandbox = singleSandboxSelector ( getState ( ) , { id } ) ;
147+ if ( sandbox ) {
148+ dispatch ( moduleActions . prettifyModule ( sandbox . currentModule ) ) ;
149+ }
150+ } ,
151+ } ,
138152} ;
You can’t perform that action at this time.
0 commit comments