diff --git a/main.js b/main.js index afb6a1d99bb4f2e257b01b400533d2189d2997c8..aa3760e1ac46cdfb727c2778bcf1520e61072774 100644 --- a/main.js +++ b/main.js @@ -1 +1,7 @@ +// Once our entry file is loaded we no longer need nbin to bypass normal Node +// execution. We can still shim the fs into the binary even when bypassing. This +// will ensure for example that a spawn like `${process.argv[0]} -e` will work +// while still allowing us to access files within the binary. +process.env.NBIN_BYPASS = true; + require("../../bootstrap-amd").load("vs/server/src/cli");