MCPcopy
hub / github.com/codeaashu/claude-code / _refreshStyle

Method _refreshStyle

src/server/web/public/terminal.js:967–976  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

965 return i3 && i3 > this._bufferService.cols && (t3.style.display = "none"), this._refreshXPosition(e3, t3), t3;
966 }
967 _refreshStyle(e3) {
968 const t3 = e3.marker.line - this._bufferService.buffers.active.ydisp;
969 if (t3 < 0 || t3 >= this._bufferService.rows) e3.element && (e3.element.style.display = "none", e3.onRenderEmitter.fire(e3.element));
970 else {
971 let i3 = this._decorationElements.get(e3);
972 i3 || (i3 = this._createElement(e3), e3.element = i3, this._decorationElements.set(e3, i3), this._container.appendChild(i3), e3.onDispose((() => {
973 this._decorationElements.delete(e3), i3.remove();
974 }))), i3.style.top = t3 * this._renderService.dimensions.css.cell.height + "px", i3.style.display = this._altBufferIsActive ? "none" : "block", e3.onRenderEmitter.fire(i3);
975 }
976 }
977 _refreshXPosition(e3, t3 = e3.element) {
978 if (!t3) return;
979 const i3 = e3.options.x ?? 0;

Callers 1

_renderDecorationMethod · 0.80

Calls 5

fireMethod · 0.80
_createElementMethod · 0.80
getMethod · 0.65
deleteMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected