Wiring change detection to render process
This commit is contained in:
@@ -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;
|
||||
|
@@ -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>,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user