()
| 2422 | } |
| 2423 | |
| 2424 | tokenInfo() { |
| 2425 | let doc = this.editor.cm.getDoc(); |
| 2426 | let cursor = doc.getCursor(); |
| 2427 | let spans = this.editor.findSpansAt(cursor).filter((span) => span instanceof Spans.ParserSpan); |
| 2428 | if(spans.length && this.onTokenInfo) { |
| 2429 | this.onTokenInfo(this, spans[0].source.id); |
| 2430 | } |
| 2431 | } |
| 2432 | |
| 2433 | monitorInputState() { |
| 2434 | window.addEventListener("mousedown", this.updateMouseInputState); |
no test coverage detected