()
| 986 | } |
| 987 | |
| 988 | refresh() { |
| 989 | let loc = this.find(); |
| 990 | if(!loc) return this.clear(); |
| 991 | |
| 992 | if(loc) { |
| 993 | if(!this.hidden) { |
| 994 | updateLineClasses(loc.from.line, loc.to.line, this.editor, this); |
| 995 | } else { |
| 996 | clearLineClasses(loc.from.line, loc.to.line, this.editor, this); |
| 997 | } |
| 998 | |
| 999 | if(loc.to.line !== this.widgetLine) { |
| 1000 | this.widgetLine = loc.to.line; |
| 1001 | if(this.commentWidget) this.commentWidget.clear(); |
| 1002 | this.updateWidget(); |
| 1003 | } |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | updateWidget() { |
| 1008 | if(this.commentWidget) this.commentWidget.clear(); |
nothing calls this directly
no test coverage detected