(key: IPublicTypeEditorValueKey, data: any)
| 115 | } |
| 116 | |
| 117 | set(key: IPublicTypeEditorValueKey, data: any): void | Promise<void> { |
| 118 | if (key === 'assets') { |
| 119 | return this.setAssets(data); |
| 120 | } |
| 121 | // store the data to engineConfig while invoking editor.set() |
| 122 | if (!keyBlacklist.includes(key as string)) { |
| 123 | engineConfig.set(key as any, data); |
| 124 | } |
| 125 | this.context.set(key, data); |
| 126 | this.notifyGot(key); |
| 127 | } |
| 128 | |
| 129 | async setAssets(assets: IPublicTypeAssetsJson) { |
| 130 | const { components } = assets; |
no test coverage detected