Started rework of file loading system

This commit is contained in:
jake87 committed 2021-11-06 17:04:34 +11:00
1 parent 71fb8541d5
commit 6013fcd528
1 file changed
-20
-20
View File
@@ -151,26 +151,6 @@ masterConfigCommands.add(new libCommand.Command({
throw err;
}
});
async function afterEditorDone() {
}
// <-- start process of running editor -->
let editorSpawn = child_process.spawn(editor, [tmpFile], {
stdio: "inherit",
detached: true,
});
editorSpawn.on("data", (data) => {
process.stdout.pipe(data);
});
editorSpawn.on("err", (err) => {
throw new libErrors.CommandError(err);
});
editorSpawn.on("exit", (exit) => {
afterEditorDone();
});
// this is more verbose then it probably needs to be, but IMO this is more readable
// <-- end process of starting editor -->
},
}));