UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

7 lines (6 loc) 2.78 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ if(process.noAsar=!0,process.send&&"true"===process.env.PIPE_LOGGING){var MAX_LENGTH=1e5;function safeToArray(e){var r,t=[],n=[];if(e.length)for(var o=0;o<e.length;o++){if(void 0===e[o])e[o]="undefined";else if(e[o]instanceof Error){var s=e[o];s.stack?e[o]=s.stack:e[o]=s.toString()}n.push(e[o])}if("true"===process.env.VSCODE_LOG_STACK){const e=(new Error).stack;n.push({__$stack:e.split("\n").slice(3).join("\n")})}try{r=JSON.stringify(n,function(e,r){if(r&&"[object Object]"===Object.prototype.toString.call(r)){if(-1!==t.indexOf(r))return Object.create(null);t.push(r)}return r})}catch(e){return"Output omitted for an object that cannot be inspected ("+e.toString()+")"}return r&&r.length>MAX_LENGTH?"Output omitted for a large object that exceeds the limits":r}function safeSend(e){try{process.send(e)}catch(e){}}"true"===process.env.VERBOSE_LOGGING?(console.log=function(){safeSend({type:"__$console",severity:"log",arguments:safeToArray(arguments)})},console.info=function(){safeSend({type:"__$console",severity:"log",arguments:safeToArray(arguments)})},console.warn=function(){safeSend({type:"__$console",severity:"warn",arguments:safeToArray(arguments)})}):(console.log=function(){},console.warn=function(){},console.info=function(){}),console.error=function(){safeSend({type:"__$console",severity:"error",arguments:safeToArray(arguments)})}}if(!process.env.VSCODE_ALLOW_IO){var stream=require("stream"),writable=new stream.Writable({write:function(){}});process.__defineGetter__("stdout",function(){return writable}),process.__defineGetter__("stderr",function(){return writable}),process.__defineGetter__("stdin",function(){return writable})}if(process.env.VSCODE_HANDLES_UNCAUGHT_ERRORS||process.on("uncaughtException",function(e){console.error("Uncaught Exception: ",e.toString()),e.stack&&console.error(e.stack)}),process.env.VSCODE_PARENT_PID){const e=Number(process.env.VSCODE_PARENT_PID);"number"!=typeof e||isNaN(e)||setInterval(function(){try{process.kill(e,0)}catch(e){process.exit()}},5e3)}const crashReporterOptionsRaw=process.env.CRASH_REPORTER_START_OPTIONS;if("string"==typeof crashReporterOptionsRaw)try{const e=JSON.parse(crashReporterOptionsRaw);e&&process.crashReporter.start(e)}catch(e){console.error(e)}require("./bootstrap-amd").bootstrap(process.env.AMD_ENTRYPOINT); //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/b813d12980308015bcd2b3a2f6efa5c810c33ba5/core/bootstrap.js.map