MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / commandRunsInReadOnly

Function commandRunsInReadOnly

src/cm/commandRegistry.js:1535–1538  ·  view source on GitHub ↗
(command, view)

Source from the content-addressed store, hash-verified

1533}
1534
1535function commandRunsInReadOnly(command, view) {
1536 if (!view) return command.readOnly;
1537 return view.state?.readOnly ? !!command.readOnly : true;
1538}
1539
1540export function executeCommand(name, view, args) {
1541 const command = resolveCommand(name);

Callers 1

executeCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected