mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 05:22:04 +08:00
Use nbin in forked processes
This commit is contained in:
10
main.js
10
main.js
@ -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");
|
||||
|
Reference in New Issue
Block a user