MCPcopy Create free account
hub / github.com/breck7/scroll / parseOptions

Function parseOptions

external/.scrollLibs.js:13522–13530  ·  view source on GitHub ↗
(cm, pos, options)

Source from the content-addressed store, hash-verified

13520 }
13521
13522 function parseOptions(cm, pos, options) {
13523 var editor = cm.options.hintOptions
13524 var out = {}
13525 for (var prop in defaultOptions) out[prop] = defaultOptions[prop]
13526 if (editor) for (var prop in editor) if (editor[prop] !== undefined) out[prop] = editor[prop]
13527 if (options) for (var prop in options) if (options[prop] !== undefined) out[prop] = options[prop]
13528 if (out.hint.resolve) out.hint = out.hint.resolve(cm, pos)
13529 return out
13530 }
13531
13532 function getText(completion) {
13533 if (typeof completion == "string") return completion

Callers 1

.scrollLibs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected