MCPcopy Create free account
hub / github.com/witheve/Eve / refresh

Method refresh

src/ide/spans.ts:988–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 6

clearMethod · 0.95
updateWidgetMethod · 0.95
clearLineClassesFunction · 0.85
updateLineClassesFunction · 0.70
findMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected