()
| 1005 | } |
| 1006 | |
| 1007 | updateWidget() { |
| 1008 | if(this.commentWidget) this.commentWidget.clear(); |
| 1009 | let loc = this.find(); |
| 1010 | if(!loc) return; |
| 1011 | this.widgetLine = loc.to.line; |
| 1012 | this.commentElem.textContent = this.message; |
| 1013 | this.commentWidget = this.editor.cm.addLineWidget(this.widgetLine, this.commentElem); |
| 1014 | } |
| 1015 | |
| 1016 | get kind() { return this.source.kind || "error"; } |
| 1017 | get message() { return this.source.message; } |
no test coverage detected