UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

1 lines 3.01 kB
!function(){var e,r,t,n,a=100,o=/^[0-9]+$/,s=process.mainModule?process.mainModule.require("vm"):require("vm"),i=s.runInDebugContext("LookupMirror"),u=s.runInDebugContext("DebugCommandProcessor");try{var c=s.runInDebugContext("PropertyKind");if(!c)throw new Error("undef");e=function(e){return e.propertyNames(c.Indexed).length},r=function(e){return e.propertyNames(c.Named).length},t=function(e,r){return e.propertyNames(c.Named|c.Indexed,r).length>=r},n=function(e){return e.propertyNames(c.Named)}}catch(a){e=function(e){var r=0;const t=e.propertyNames();for(var n=0;n<t.length;n++)l(t[n])&&r++;return r},r=function(e){var r=0;const t=e.propertyNames();for(var n=0;n<t.length;n++)l(t[n])||r++;return r},t=function(e,r){return e.propertyNames().length>=r},n=function(e){var r=[];const t=e.propertyNames();for(var n=0;n<t.length;n++){var a=t[n];l(a)||r.push(a)}return r}}var l=function(e){switch(typeof e){case"number":return!0;case"string":return o.test(e);default:return!1}};try{var d=s.runInDebugContext("JSONProtocolSerializer");d.prototype.serializeReferencedObjects=function(){for(var e=[],r=0;r<this.mirrors_.length;r++){var n=this.mirrors_[r];if(!n.isArray()){if(n.isObject())if(n.handle()<0);else if(t(n,a))continue;e.push(this.serialize_(n,!1,!1))}}return e}}catch(e){}u.prototype.dispatch_.vscode_slice=function(e,r){var t=e.arguments.handle,a=e.arguments.start,o=e.arguments.count,s=e.arguments.mode,u=i(t);if(!u)return r.failed("Object #"+t+"# not found");var c=[];if(("named"===s||"all"===s)&&(u.isArray()||u.isObject()))for(var l=n(u),d=0;d<l.length;d++){var p=l[d],f=u.property(p);c.push({name:p,value:f.value()})}if("indexed"===s||"all"===s)if(u.isArray())for(var v=u.indexedPropertiesFromRange(a,a+o-1),d=0;d<v.length;d++)c.push({name:(a+d).toString(),value:v[d].value()});else if(u.isObject())for(var d=0,y=a;d<o;d++,y++){var f=u.property(y.toString());c.push({name:y.toString(),value:f.value()})}r.body={result:c}};var p=function(t){var n=-1,o=-1;if(t.isArray())n=r(t),o=t.length();else if(t.isObject())switch(t.className()){case"ArrayBuffer":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":n=r(t),o=e(t)}return o>a?{type:"object",handle:t.handle(),className:t.className(),vscode_namedCnt:n,vscode_indexedCnt:o}:t};u.prototype.dispatch_.vscode_lookup=function(e,r){var t=this.lookupRequest_(e,r);if(!t&&r.body)for(var n=e.arguments.handles,a=0;a<n.length;a++){var o=n[a];r.body[o]=p(r.body[o])}return t},u.prototype.dispatch_.vscode_evaluate=function(e,r){var t=this.evaluateRequest_(e,r);return t||(r.body=p(r.body)),t},u.prototype.dispatch_.vscode_scopes=function(e,r){var t=this.scopesRequest_(e,r);if(!t)for(var n=e.arguments.maxLocals,a=r.body.scopes,o=0;o<a.length-1;o++){const s=a[o].details_.details_;if(s&&1===s[0]){const i=s[1],u=Object.keys(i);if(u.length>n){for(var c={},l=0;l<n;l++){var d=u[l];c[d]=i[d]}s[1]=c,r.body.vscode_locals=u.length}}}return t}}();