src/vs/workbench/api/worker/extensionHostWorker.ts/isInitMessage
function isInitMessage(a: any): a is IInitMessage {
	return !!a && typeof a === 'object' && a.type === 'vscode.init' && a.data instanceof Map;
}