src/vs/workbench/api/browser/mainThreadStorage.ts/MainThreadStorage/$setValue
class MainThreadStorage:	$setValue(shared: boolean, key: string, value: object): Promise<void> {
		let jsonValue: string;
		try {
			jsonValue = JSON.stringify(value);
			// Extension state is synced separately through extensions
			this._storageService.store(key, jsonValue, shared ? StorageScope.GLOBAL : StorageScope.WORKSPACE, StorageTarget.MACHINE);
		} catch (err) {
			return Promise.reject(err);
		}
		return Promise.resolve(undefined);
	}