MCPcopy Create free account
hub / github.com/codeaashu/claude-code / dispose

Method dispose

src/server/web/public/terminal.js:4376–4378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4374 this.line = e3, this.isDisposed = false, this._disposables = [], this._id = n._nextId++, this._onDispose = this.register(new s2.EventEmitter()), this.onDispose = this._onDispose.event;
4375 }
4376 dispose() {
4377 this.isDisposed || (this.isDisposed = true, this.line = -1, this._onDispose.fire(), (0, r.disposeArray)(this._disposables), this._disposables.length = 0);
4378 }
4379 register(e3) {
4380 return this._disposables.push(e3), e3;
4381 }

Callers

nothing calls this directly

Calls 2

fireMethod · 0.80
disposeMethod · 0.65

Tested by

no test coverage detected