MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / exec

Function exec

src/lib/selectionMenu.js:3–13  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

1import appSettings from "lib/settings";
2
3const exec = (command) => {
4 const { editor } = editorManager;
5 editor.execCommand(command);
6
7 if (command === "selectall") {
8 editor.scrollToRow(Number.POSITIVE_INFINITY);
9 editor.setSelection(true);
10 editor.setMenu(true);
11 }
12 editor.focus();
13};
14
15const showCodeActions = async () => {
16 const { editor } = editorManager;

Callers 2

selectionMenuFunction · 0.70
selectionMenu.jsFile · 0.70

Calls 4

setSelectionMethod · 0.80
setMenuMethod · 0.80
focusMethod · 0.80
execCommandMethod · 0.65

Tested by

no test coverage detected