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

Method fromTextAreaWithAutocomplete

external/.scrollLibs.js:21535–21550  ·  view source on GitHub ↗
(area, options)

Source from the content-addressed store, hash-verified

21533 return this._advanceStreamAndReturnTokenType(stream, state)
21534 }
21535 fromTextAreaWithAutocomplete(area, options) {
21536 this._originalValue = area.value
21537 const defaultOptions = {
21538 lineNumbers: true,
21539 mode: this._name,
21540 tabSize: 1,
21541 indentUnit: 1,
21542 hintOptions: {
21543 hint: (cmInstance, options) => this.codeMirrorAutocomplete(cmInstance, options)
21544 }
21545 }
21546 Object.assign(defaultOptions, options)
21547 this._cmInstance = this._getCodeMirrorLib().fromTextArea(area, defaultOptions)
21548 this._enableAutoComplete(this._cmInstance)
21549 return this._cmInstance
21550 }
21551 _enableAutoComplete(cmInstance) {
21552 const excludedKeys = this._getExcludedIntelliSenseTriggerKeys()
21553 const codeMirrorLib = this._getCodeMirrorLib()

Callers

nothing calls this directly

Calls 3

_getCodeMirrorLibMethod · 0.95
_enableAutoCompleteMethod · 0.95

Tested by

no test coverage detected