You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Constructor-only options (cols, rows) cannot be changed after instantiation
59
59
60
+
**Disposable Management**:
61
+
- When a disposable object can be replaced over time, prefer a registered `MutableDisposable` over manual dispose/reassign logic.
62
+
- Register it on the owning class (for example, `this._register(new MutableDisposable())`) and assign through `.value`; this automatically disposes the previous value and avoids accidentally leaking resources.
63
+
64
+
**TypeScript Constants**:
65
+
- Prefer `const enum` over top-level `const` declarations for primitive constants when appropriate, since values are inlined and avoid runtime property lookups.
66
+
60
67
**Testing Utilities**: Use `TestUtils.ts` helpers:
61
68
-`openTerminal(ctx, options)` for setup
62
69
-`pollFor(page, fn, expectedValue)` for async assertions
0 commit comments