MCPcopy Index your code
hub / github.com/witheve/Eve / updateWidget

Method updateWidget

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

Source from the content-addressed store, hash-verified

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; }

Callers 2

refreshMethod · 0.95
updateDocumentMethod · 0.45

Calls 3

addLineWidgetMethod · 0.80
clearMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected