()
| 928 | } |
| 929 | |
| 930 | updateWidget() { |
| 931 | if(this.commentWidget) this.commentWidget.clear(); |
| 932 | let loc = this.find(); |
| 933 | if(!loc) return; |
| 934 | this.widgetLine = loc.to.line; |
| 935 | this.commentElem.textContent = this.message; |
| 936 | this.commentWidget = this.editor.cm.addLineWidget(this.widgetLine, this.commentElem); |
| 937 | } |
| 938 | |
| 939 | get kind() { return this.source.kind || "error"; } |
| 940 | get message() { return this.source.message; } |
no test coverage detected