mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 01:37:20 +00:00
Implements dynamic dependency check (to address #138348).
This commit is contained in:
parent
707f6700d5
commit
b2de74cb1f
1 changed files with 3 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue