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

Method refresh

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

Source from the content-addressed store, hash-verified

785 }
786
787 refresh() {
788 let loc = this.find();
789 if(!loc) return this.clear();
790
791 if(!this.annotation) {
792 this.annotation = this.editor.cm.annotateScrollbar({className: `scrollbar-annotation ${this.source.kind}`});
793 }
794 if(loc) {
795 this.annotation.update([loc]);
796 if(!this.hidden) {
797 updateLineClasses(loc.from.line, loc.to.line, this.editor, this);
798 } else {
799 clearLineClasses(loc.from.line, loc.to.line, this.editor, this);
800 }
801 }
802 }
803}
804
805export class AnnotationSpan extends Span {

Callers

nothing calls this directly

Calls 6

clearMethod · 0.95
clearLineClassesFunction · 0.85
annotateScrollbarMethod · 0.80
updateLineClassesFunction · 0.70
findMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected