'use strict' ; import { Uri } from 'vscode' ; import { WebviewAdapter } from './view' ; /**
 * Base class for domain/problem view panels.
 */ export class BaseViewPanel { constructor ( public readonly uri , protected readonly panel ) { } public async postMessage ( command , payload ) { const message = { command : command } ; Object . keys ( payload ) . forEach ( key => message [ key ] = payload [ key ] ) ; return this . panel . postMessage ( message ) ; } }