Skip to content

Commit 2e97975

Browse files
committed
fix missing ace commands in cm
1 parent dc401af commit 2e97975

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/cm/commandRegistry.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,22 @@ function registerCoreCommands() {
581581
return true;
582582
},
583583
});
584+
addCommand({
585+
name: "dev:openInspector",
586+
description: "Open Inspector",
587+
exec() {
588+
acode.exec("open-inspector");
589+
},
590+
readOnly: true,
591+
});
592+
addCommand({
593+
name: "dev:toggleDevTools",
594+
description: "Toggle Developer Tools",
595+
exec() {
596+
acode.exec("toggle-inspector");
597+
},
598+
readOnly: true,
599+
});
584600

585601
// Additional editor-centric helpers mapped to CodeMirror primitives that have existing key bindings in defaults.
586602
addCommand({

0 commit comments

Comments
 (0)