Preliminary file watch logic added

This commit is contained in:
2025-06-12 22:56:03 -05:00
parent 9d3eb76960
commit 7b498d0602
5 changed files with 45 additions and 7 deletions

View File

@@ -11,15 +11,17 @@ const { newton } = require('./app');
const loadHandlers = () => {
ipcMain.handle('getLspConfigData', (eve) => newton.fs.getLspConfigData());
ipcMain.handle('getFileContents', (eve, file) => newton.fs.getFileContents(file));
ipcMain.handle('getFileContents', (eve, path) => newton.fs.getFileContents(path));
ipcMain.handle('openFiles', (eve, startPath) => newton.fs.openFiles(startPath));
ipcMain.handle('saveFile', (eve, path, content) => newton.fs.saveFile(path, content));
ipcMain.handle('closeFile', (eve, path) => newton.fs.closeFile(path));
ipcMain.handle('saveFileAs', (eve, content) => newton.fs.saveFileAs(content));
}
app.whenReady().then(() => {
newton.args.loadArgs();
newton.fs.loadFilesWatcher();
loadHandlers();
newton.settings.loadsettings();