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

Method updateWidget

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

Source from the content-addressed store, hash-verified

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

Callers 1

refreshMethod · 0.95

Calls 3

addLineWidgetMethod · 0.80
clearMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected