MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / finish

Method finish

tools/xsbug-log/xsbug-debugmachine.js:77–86  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

75
76 completer(line, callback) {
77 const finish = (result) => {
78 let [completions, matched] = result;
79 // Nothing to complete if only match is what's already typed
80 if (completions.length === 1 && completions[0] === matched)
81 completions = [];
82 if (completions.length > 1 && !this.completionsShown) {
83 this._displayCompletions(completions);
84 }
85 callback(null, [completions, matched]);
86 };
87 if (this.broken) {
88 const args = line.trimStart().split(/\s+/);
89 const cmd = args[0];

Callers

nothing calls this directly

Calls 2

_displayCompletionsMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected