(area, options)
| 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() |
nothing calls this directly
no test coverage detected