MCPcopy
hub / github.com/marktext/marktext / removeOperation

Method removeOperation

packages/muya/src/state/index.ts:100–106  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

98 }
99
100 removeOperation(path: Path) {
101 const operation = json1.removeOp(path)!;
102
103 this._operationCache.push(operation);
104
105 this._emitStateChange();
106 }
107
108 editOperation(path: Path, diff: TDiff[]) {
109 const operation = json1.editOp(path, 'text-unicode', diff)!;

Callers 1

removeMethod · 0.80

Calls 2

_emitStateChangeMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected