MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / insert

Function insert

static/js/codemirror/addon/hint/simple-hint.js:24–26  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

22 if (!result || !result.list.length) return;
23 var completions = result.list;
24 function insert(str) {
25 editor.replaceRange(str, result.from, result.to);
26 }
27 // When there is only one completion, use it directly.
28 if (options.completeSingle && completions.length == 1) {
29 insert(completions[0]);

Callers 2

collectHintsFunction · 0.70
pickFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected