MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _createResultDecoration

Method _createResultDecoration

src/server/web/public/terminal.js:6616–6625  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

6614 return true;
6615 }
6616 _applyStyles(e3, t3, i2) {
6617 e3.classList.contains("xterm-find-result-decoration") || (e3.classList.add("xterm-find-result-decoration"), t3 && (e3.style.outline = `1px solid ${t3}`)), i2 && e3.classList.add("xterm-find-active-result-decoration");
6618 }
6619 _createResultDecoration(e3, t3) {
6620 const i2 = this._terminal, s2 = i2.registerMarker(-i2.buffer.active.baseY - i2.buffer.active.cursorY + e3.row);
6621 if (!s2) return;
6622 const o2 = i2.registerDecoration({ marker: s2, x: e3.col, width: e3.size, backgroundColor: t3.matchBackground, overviewRulerOptions: this._highlightedLines.has(s2.line) ? void 0 : { color: t3.matchOverviewRuler, position: "center" } });
6623 if (o2) {
6624 const e4 = [];
6625 e4.push(s2), e4.push(o2.onRender(((e5) => this._applyStyles(e5, t3.matchBorder, false)))), e4.push(o2.onDispose((() => (0, r.disposeArray)(e4))));
6626 }
6627 return o2;
6628 }

Callers 1

_highlightAllMatchesMethod · 0.95

Calls 6

_applyStylesMethod · 0.95
registerMarkerMethod · 0.45
registerDecorationMethod · 0.45
hasMethod · 0.45
pushMethod · 0.45
onRenderMethod · 0.45

Tested by

no test coverage detected