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

Method activate

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

Source from the content-addressed store, hash-verified

6409 const t2 = i(345), r = i(859), o = " ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?";
6410 class n extends r.Disposable {
6411 constructor(e3) {
6412 super(), this._highlightedLines = /* @__PURE__ */ new Set(), this._highlightDecorations = [], this._selectedDecoration = this.register(new r.MutableDisposable()), this._linesCacheTimeoutId = 0, this._linesCacheDisposables = new r.MutableDisposable(), this._onDidChangeResults = this.register(new t2.EventEmitter()), this.onDidChangeResults = this._onDidChangeResults.event, this._highlightLimit = (e3 == null ? void 0 : e3.highlightLimit) ?? 1e3;
6413 }
6414 activate(e3) {
6415 this._terminal = e3, this.register(this._terminal.onWriteParsed((() => this._updateMatches()))), this.register(this._terminal.onResize((() => this._updateMatches()))), this.register((0, r.toDisposable)((() => this.clearDecorations())));
6416 }

Callers

nothing calls this directly

Calls 5

registerMethod · 0.95
_updateMatchesMethod · 0.95
clearDecorationsMethod · 0.95
onWriteParsedMethod · 0.80
onResizeMethod · 0.80

Tested by

no test coverage detected