Wiring change detection to render process

This commit is contained in:
2025-06-19 20:03:02 -05:00
parent 5c19d82834
commit c599013af4
6 changed files with 40 additions and 15 deletions

View File

@@ -134,6 +134,14 @@ export class EditorsComponent {
this.setSession(file);
});
window.fs.onChangedFile(async (path: string) => {
console.log(path);
});
window.fs.onDeletedFile(async (path: string) => {
console.log(path);
});
window.main.onMenuActions(async (action: string) => {
let editorComponent = this.getActiveEditorComponent();
let editor = editorComponent.editor;

View File

@@ -32,6 +32,8 @@ declare global {
closeFile: (arg0: any) => Promise<string>,
getPathForFile: any,
onLoadFiles: (arg0: any) => Promise<string>,
onChangedFile: (arg0: any) => Promise<string>,
onDeletedFile: (arg0: any) => Promise<string>,
}
}
}