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

Method _setupOptions

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

Source from the content-addressed store, hash-verified

5738 onMultipleOptionChange(e3, t3) {
5739 return this.onOptionChange(((i3) => {
5740 -1 !== e3.indexOf(i3) && t3();
5741 }));
5742 }
5743 _setupOptions() {
5744 const e3 = (e4) => {
5745 if (!(e4 in t2.DEFAULT_OPTIONS)) throw new Error(`No option with key "${e4}"`);
5746 return this.rawOptions[e4];
5747 }, i3 = (e4, i4) => {
5748 if (!(e4 in t2.DEFAULT_OPTIONS)) throw new Error(`No option with key "${e4}"`);
5749 i4 = this._sanitizeAndValidateOption(e4, i4), this.rawOptions[e4] !== i4 && (this.rawOptions[e4] = i4, this._onOptionChange.fire(e4));
5750 };
5751 for (const t3 in this.rawOptions) {
5752 const s3 = { get: e3.bind(this, t3), set: i3.bind(this, t3) };
5753 Object.defineProperty(this.options, t3, s3);
5754 }
5755 }

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected