Use nbin in forked processes

This commit is contained in:
Asher
2019-07-05 11:54:04 -05:00
parent 6156eb9ff4
commit 3ca90a5f89
3 changed files with 24 additions and 10 deletions

10
main.js
View File

@ -1,11 +1 @@
try {
const nbin = require("nbin");
const path = require("path");
const rootPath = path.resolve(__dirname, "../../..");
console.log("Shimming", rootPath);
nbin.shimNativeFs(rootPath);
} catch (error) {
console.log("Not in the binary");
}
require("../../bootstrap-amd").load("vs/server/cli");