(cmInstance)
| 21549 | return this._cmInstance |
| 21550 | } |
| 21551 | _enableAutoComplete(cmInstance) { |
| 21552 | const excludedKeys = this._getExcludedIntelliSenseTriggerKeys() |
| 21553 | const codeMirrorLib = this._getCodeMirrorLib() |
| 21554 | cmInstance.on("keyup", (cm, event) => { |
| 21555 | // https://stackoverflow.com/questions/13744176/codemirror-autocomplete-after-any-keyup |
| 21556 | if (!cm.state.completionActive && !excludedKeys[event.keyCode.toString()]) |
| 21557 | // Todo: get typings for CM autocomplete |
| 21558 | codeMirrorLib.commands.autocomplete(cm, null, { completeSingle: false }) |
| 21559 | }) |
| 21560 | } |
| 21561 | _getCodeMirrorLib() { |
| 21562 | return this._codeMirrorLib |
| 21563 | } |
no test coverage detected