Implements dynamic dependency check (to address #138348).

This commit is contained in:
Henning Dieterichs 2021-12-07 11:22:32 +01:00
parent 707f6700d5
commit b2de74cb1f
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06

View file

@ -64,6 +64,9 @@ const hasOwnProperty = Object.hasOwnProperty;
export class ComputedEditorOptions implements IComputedEditorOptions {
private readonly _values: any[] = [];
public _read<T>(id: EditorOption): T {
if (id >= this._values.length) {
throw new Error('Cannot read uninitialized value');
}
return this._values[id];
}
public get<T extends EditorOption>(id: T): FindComputedEditorOptionValueById<T> {