(reason: string)
| 166 | } |
| 167 | |
| 168 | clearCompletion(reason: string): boolean { |
| 169 | const currentCompletion = this.currentCompletion; |
| 170 | if (currentCompletion === undefined) { |
| 171 | return false; |
| 172 | } |
| 173 | if (CODEIUM_DEBUG) { |
| 174 | console.log('Clearing completions because', reason); |
| 175 | } |
| 176 | currentCompletion.disposables.forEach((disposable) => { |
| 177 | disposable.dispose(); |
| 178 | }); |
| 179 | currentCompletion.lineWidgets.forEach((widget) => { |
| 180 | widget.clear(); |
| 181 | }); |
| 182 | currentCompletion.textMarkers.forEach((marker) => { |
| 183 | marker.marker.clear(); |
| 184 | }); |
| 185 | this.currentCompletion = undefined; |
| 186 | return true; |
| 187 | } |
| 188 | |
| 189 | renderCompletion( |
| 190 | doc: CodeMirror.Doc, |
no outgoing calls
no test coverage detected