(str)
| 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]); |
no outgoing calls
no test coverage detected