MCPcopy
hub / github.com/witheve/Eve / operation

Method operation

typings/codemirror/codemirror.d.ts:308–308  ·  view source on GitHub ↗

CodeMirror internally buffers changes and only updates its DOM structure after it has finished performing some operation. If you need to perform a lot of operations on a CodeMirror instance, you can call this method with a function argument. It will call the function, buffering up al

(fn: ()=> T)

Source from the content-addressed store, hash-verified

306 It will call the function, buffering up all changes, and only doing the expensive update after the function returns.
307 This can be a lot faster. The return value from this method will be the return value of your function. */
308 operation<T>(fn: ()=> T): T;
309
310 /** Adjust the indentation of the given line.
311 The second argument (which defaults to "smart") may be one of:

Callers 15

onCopyCutFunction · 0.80
codemirror.jsFile · 0.80
VimFunction · 0.80
findNextFunction · 0.80
replaceAllFunction · 0.80
onPromptKeyDownFunction · 0.80
NavigatorClass · 0.80
loadDocumentMethod · 0.80
updateDocumentMethod · 0.80
injectSpansMethod · 0.80
markBetweenMethod · 0.80
clearSpansMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected